Named function hooked to diff-mode-hook
This commit is contained in:
parent
fb743fc5e7
commit
53271caa5b
|
@ -2715,9 +2715,9 @@ It is a string holding:
|
|||
:off (global-whitespace-mode -1)
|
||||
:documentation "Globally display the whitespaces."
|
||||
:evil-leader "t C-w")
|
||||
(add-hook 'diff-mode-hook (lambda ()
|
||||
(setq-local whitespace-style
|
||||
'(face
|
||||
(defun spacemacs//set-whitespace-style-for-diff ()
|
||||
"Whitespace configuration for `diff-mode'"
|
||||
(setq-local whitespace-style '(face
|
||||
tabs
|
||||
tab-mark
|
||||
spaces
|
||||
|
@ -2726,8 +2726,9 @@ It is a string holding:
|
|||
indentation::space
|
||||
indentation::tab
|
||||
newline
|
||||
newline-mark))
|
||||
(whitespace-mode 1))))
|
||||
newline-mark)))
|
||||
(add-hook 'diff-mode-hook 'whitespace-mode)
|
||||
(add-hook 'diff-mode-hook 'spacemacs//set-whitespace-style-for-diff))
|
||||
:config
|
||||
(progn
|
||||
(set-face-attribute 'whitespace-space nil
|
||||
|
|
Loading…
Reference in a new issue