diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-13 21:57:45 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-13 21:57:45 +0200 |
| commit | a8ec5d4199546781a7ebb070145de9eef26793b5 (patch) | |
| tree | 2a75b4fc85d61548d934e7a988550ec6ba5bbeac | |
| parent | ccd425cf3fd0ac0084b9f5772a1407d7a718feca (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.el | 4 |
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 |
