From bfd024dd2b2e3a3e180eb541852968d3e18e0d6d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 11 Oct 2021 18:09:13 -0500 Subject: Change up the modeline - Constant width for buffer name - Re-think nyan-mode minimum window width --- lisp/acdw-modeline.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lisp') diff --git a/lisp/acdw-modeline.el b/lisp/acdw-modeline.el index a9020c5..adfcb44 100644 --- a/lisp/acdw-modeline.el +++ b/lisp/acdw-modeline.el @@ -33,9 +33,7 @@ Otherwise, cdr should be a function that takes two points (see `count-words')." (defun acdw-modeline/buffer-name () ; gonsie "Display the buffer name in a face reflecting its modified status." - (propertize (concat " " - (truncate-string (/ (window-total-width) 2) - (buffer-name) "~")) + (propertize (concat (format " %-20s" (truncate-string 20 (buffer-name) "~"))) 'face 'bold ;; (if (buffer-modified-p) ;; 'font-lock-warning-face -- cgit 1.4.1-21-gabe81