diff options
author | Aaron LI <aly@aaronly.me> | 2017-05-31 14:28:42 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-05-31 14:28:42 +0800 |
commit | 536a9cd2f3c3734b8255e6abe5940ea905048177 (patch) | |
tree | fe78b4cbf2229fe783b595775b542cd3ddeaf6f9 | |
parent | 0eb03dddc651a5683758e5c70b9b518f1809908e (diff) | |
download | dotfiles-536a9cd2f3c3734b8255e6abe5940ea905048177.tar.bz2 |
spacemacs: cleanup whitespace on *changed* lines
See: https://github.com/syl20bnr/spacemacs/issues/8221
-rw-r--r-- | _spacemacs.d/init.el | 7 |
1 files changed, 6 insertions, 1 deletions
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 )) |