Only show trailing whitespace in acutal text or prog buffers

This commit is contained in:
Alexander Rosenberg 2024-10-05 05:01:02 -07:00
parent 046ba351ce
commit e79ade8554
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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