emacs: smart-mode-line: don't make fixed-width fills
authorAmin Bandali <mab@gnu.org>
Tue, 28 Jan 2020 00:22:30 +0000 (19:22 -0500)
committerAmin Bandali <mab@gnu.org>
Tue, 28 Jan 2020 00:25:30 +0000 (19:25 -0500)
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

.emacs.d/init.el

index 95b1f87..1d71471 100644 (file)
@@ -1560,6 +1560,8 @@ This function is intended for use with `ivy-ignore-buffers'."
   :commands (sml/apply-theme)
   :demand
   :config
   :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))
   (setq sml/theme 'tangomod)
   (sml/setup)
   (smart-mode-line-enable))