From b3866d67bbeedbd1f739a312a9c4ad6daf593cbd Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 15 May 2022 00:37:25 +0300 Subject: [PATCH] consult-push-button: Replace newlines with spaces in the button label --- .emacs.d/esy.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 979c9d5..fc0885a 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -1317,8 +1317,11 @@ Add the timezones of places of interest to the list of clocks shown by (buttons nil)) (while button (setq buttons - (cons `(,(concat (truncate-string-to-width (button-label button) - 64 nil ?\s t) + (cons `(,(concat (truncate-string-to-width + (string-replace "\n" + " " + (button-label button)) + 64 nil ?\s t) " " (propertize (format "[%d]" index) 'invisible t)) . -- 2.39.5