From: Amin Bandali Date: Tue, 28 Jan 2020 00:22:30 +0000 (-0500) Subject: emacs: smart-mode-line: don't make fixed-width fills X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/8f2b3cb683c3b93066989c953c031ed771489294?ds=inline;hp=b1ed18e4b2d3de3d58b86ab025875ab84ed92bb2 emacs: smart-mode-line: don't make fixed-width fills this bothered me forever. it's *super* annoying on low-resolution screens, especially with horizontal splits (side by side) where the effective width of the mode-line for each window is considerably smaller than the display's width --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 95b1f87..1d71471 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1560,6 +1560,8 @@ This function is intended for use with `ivy-ignore-buffers'." :commands (sml/apply-theme) :demand :config + ;; thanks, but no thnaks; don't make fixed-width fills. + (defun sml/fill-for-buffer-identification () "") (setq sml/theme 'tangomod) (sml/setup) (smart-mode-line-enable))