commit 61b62583c2b07a876efd4c58dce0604d899d269f parent 351d21a4599a2331d0048995a172185200922838 Author: andsy10 <andsy1016@gmail.com> Date: Sat, 3 Oct 2026 11:10:12 +0800 Show trailing whitespace Diffstat:
| M | lisp/init-ui.el | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/lisp/init-ui.el b/lisp/init-ui.el @@ -124,6 +124,17 @@ from `readable-foreground-color'." display-line-numbers-grow-only t display-line-numbers-width-start 4)) +;; whitespace +(use-package whitespace + :straight nil + :config + (defun my-show-trailing-whitespace () + "Enable display of trailing whitespace in this buffer." + (setq-local show-trailing-whitespace t)) + + (dolist (hook '(prog-mode-hook text-mode-hook conf-mode-hook)) + (add-hook hook 'my-show-trailing-whitespace))) + ;; resize margins (use-package olivetti :delight