aboutsummaryrefslogtreecommitdiffstats
path: root/_spacemacs.d
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-05-31 14:28:42 +0800
committerAaron LI <aly@aaronly.me>2017-05-31 14:28:42 +0800
commit536a9cd2f3c3734b8255e6abe5940ea905048177 (patch)
treefe78b4cbf2229fe783b595775b542cd3ddeaf6f9 /_spacemacs.d
parent0eb03dddc651a5683758e5c70b9b518f1809908e (diff)
downloaddotfiles-536a9cd2f3c3734b8255e6abe5940ea905048177.tar.bz2
spacemacs: cleanup whitespace on *changed* lines
See: https://github.com/syl20bnr/spacemacs/issues/8221
Diffstat (limited to '_spacemacs.d')
-rw-r--r--_spacemacs.d/init.el7
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
))