commit 56d855d523a633d7280c8a6513290a404a43bedb from: Lukas Henkel date: Thu Oct 19 18:31:42 2023 UTC show-trailing-whitespace only in prog-mode commit - c95d2c531fb87595144e3640e401c9ca281ec6c0 commit + 56d855d523a633d7280c8a6513290a404a43bedb blob - 2c4d173a06f8aa98d10605ceb57f3f2f304eeec9 blob + 68597f3cb526390772bb60a11e0ab84f55fa07e1 --- init.el +++ init.el @@ -246,6 +246,9 @@ ;; Aggressive Intent mode causes 100% CPU for me whenever the sly repl prints warnings (add-hook 'sly-mrepl-mode-hook (lambda () (aggressive-indent-mode -1))) (add-hook 'embark-collect-mode-hook 'consult-preview-at-point-mode) +(add-hook 'prog-mode-hook + (lambda () + (setq-local show-trailing-whitespace t))) ;; notmuch's tag selection doesnt work with consult-completing-read-multiple ;; items need to be trimmed @@ -389,7 +392,6 @@ '(save-place-mode t) '(savehist-mode t) '(scroll-conservatively 100) - '(show-trailing-whitespace t) '(tab-always-indent 'complete) '(use-short-answers t) '(warning-suppress-types '((comp)))