From e79ade85545ecb3255163b96174f7825bcaec6b8 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 5 Oct 2024 05:01:02 -0700 Subject: [PATCH] Only show trailing whitespace in acutal text or prog buffers --- init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 3f99604..5bc18ed 100644 --- a/init.el +++ b/init.el @@ -48,8 +48,11 @@ (use-package emacs :hook (;;(emacs-lisp-mode . my/-emacs-lisp-mode-setup-evil-lookup) ;;(prog-mode . electric-pair-local-mode) - ((text-mode message-mode tex-mode prog-mode) . auto-fill-mode)) + ((text-mode message-mode tex-mode prog-mode) . auto-fill-mode) + ((text-mode message-mode tex-mode prog-mode) . my/-enable-show-trailing-whitespace)) :init + (defun my/-enable-show-trailing-whitespace () + (setq-local show-trailing-whitespace t)) ;; (defun my/-emacs-lisp-mode-setup-evil-lookup () ;; (setq-local evil-lookup-func ;; #'my/describe-symbol-at-point)) @@ -136,8 +139,7 @@ tab-width 4 fill-column 80 comment-multi-line t - comment-empty-lines 'eol - show-trailing-whitespace t) + comment-empty-lines 'eol) ;; Tree sitter download locations (setq treesit-language-source-alist