aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2025-04-13 21:57:45 +0200
committerNicholas Rodrigues Lordello <[email protected]>2025-04-13 21:57:45 +0200
commita8ec5d4199546781a7ebb070145de9eef26793b5 (patch)
tree2a75b4fc85d61548d934e7a988550ec6ba5bbeac
parentccd425cf3fd0ac0084b9f5772a1407d7a718feca (diff)
Hide Trailing Whitespace in Certain Buffers
The buffer list adds trailing whitespace for spacing columns, so add a hook to make sure that we don't show trailing whitepsace in that mode.
-rw-r--r--config/emacs/sanemacs.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/emacs/sanemacs.el b/config/emacs/sanemacs.el
index a59b862..5615971 100644
--- a/config/emacs/sanemacs.el
+++ b/config/emacs/sanemacs.el
@@ -21,6 +21,10 @@
show-trailing-whitespace t
tab-width 4)
(load-theme 'modus-vivendi)
+(defun sanemacs/hide-trailing-whitespace ()
+ "Hides trailing whitespace for the current buffer."
+ (setq show-trailing-whitespace nil))
+(add-hook 'Buffer-menu-mode-hook #'sanemacs/hide-trailing-whitespace)
;; Configure features to use `.cache` directory
(setq