From 536a9cd2f3c3734b8255e6abe5940ea905048177 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 31 May 2017 14:28:42 +0800 Subject: spacemacs: cleanup whitespace on *changed* lines See: https://github.com/syl20bnr/spacemacs/issues/8221 --- _spacemacs.d/init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_spacemacs.d/init.el b/_spacemacs.d/init.el index 3ddffe3..8ee388c 100644 --- a/_spacemacs.d/init.el +++ b/_spacemacs.d/init.el @@ -372,7 +372,12 @@ ;; `trailing' to delete only the whitespace at end of lines, `changed' to ;; delete only whitespace for changed lines or `nil' to disable cleanup. ;; (default nil) - dotspacemacs-whitespace-cleanup 'trailing + ;; NOTE: Currently, cannot *locally* disable whitespace cleanup when it + ;; is globally enabled with modes `all' or `trailing', but `changed' + ;; mode works OK. + ;; See: https://github.com/syl20bnr/spacemacs/issues/8221 + ;dotspacemacs-whitespace-cleanup 'trailing + dotspacemacs-whitespace-cleanup 'changed )) -- cgit v1.2.2