[Emacs] Add prog mode hook to show trailing whitespace

This commit is contained in:
Ivan Malison 2017-03-10 15:09:56 -08:00
parent d3c46a4024
commit 7c0b6aa1af
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1315,6 +1315,7 @@ in my opinion. It's kind of crazy how often you will encounter serious codebases
(setq show-trailing-whitespace t)) (setq show-trailing-whitespace t))
(add-hook 'text-mode-hook 'imalison:show-trailing-whitespace) (add-hook 'text-mode-hook 'imalison:show-trailing-whitespace)
(add-hook 'prog-mode-hook 'imalison:show-trailing-whitespace)
#+END_SRC #+END_SRC
*** Disable *** Disable
Unfortunately, this setting can get annoying in a lot of modes, which is why I Unfortunately, this setting can get annoying in a lot of modes, which is why I