From 8abf717407dbe42fbcec55cfb6f8688d87226e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 31 Aug 2022 15:40:01 +0200 Subject: eb.el: Fit window to buffer horizontally. --- eb.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eb.el b/eb.el index e3075dd..5233c9c 100644 --- a/eb.el +++ b/eb.el @@ -69,7 +69,10 @@ ,open (eb--fleeting-minor-mode) (setq eb--fleeting--direction ',dir)) - (run-with-idle-timer 0 nil (lambda (window) (fit-window-to-buffer window)) window) + (run-with-idle-timer 0 nil (lambda (window) + (let ((fit-window-to-buffer-horizontally t)) + (fit-window-to-buffer window))) + window) window))))) (defvar eb--fleeting--buffer nil) -- cgit v1.2.3