From fb743fc5e749b3405e590228b7e95f8931a6ec6c Mon Sep 17 00:00:00 2001 From: Tu Do Date: Wed, 22 Apr 2015 18:53:06 +0700 Subject: [PATCH] Enable whitespace-mode for diff-mode Since diff-mode is where we review our patch, it would be nice to review whitespace as well, so we don't add unneeded characters. --- spacemacs/packages.el | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 69af156a0..e0819e7be 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -2714,7 +2714,20 @@ It is a string holding: :on (global-whitespace-mode) :off (global-whitespace-mode -1) :documentation "Globally display the whitespaces." - :evil-leader "t C-w")) + :evil-leader "t C-w") + (add-hook 'diff-mode-hook (lambda () + (setq-local whitespace-style + '(face + tabs + tab-mark + spaces + space-mark + trailing + indentation::space + indentation::tab + newline + newline-mark)) + (whitespace-mode 1)))) :config (progn (set-face-attribute 'whitespace-space nil