Disable whitespace-mode in magit-derived modes

This commit is contained in:
Gergely Polonkai 2018-03-19 11:38:11 +01:00
parent e144524676
commit 2972e061a1
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@
(use-package whitespace
:demand
:config
(defun prevent-whitespace-mode-for-magit ()
(not (derived-mode-p 'magit-mode)))
(add-function :before-while whitespace-enable-predicate 'prevent-whitespace-mode-for-magit)
(global-whitespace-mode 1)
(setq whitespace-line-column 100)
:bind