highlight-indentation: improve whitespace handling

This commit is contained in:
Henrik Lissner
2016-04-14 12:55:17 -04:00
parent 11af0f487c
commit 843bc3e00d
2 changed files with 17 additions and 11 deletions

View File

@@ -159,6 +159,7 @@
(if highlight-indentation-mode
(progn
(narf/add-whitespace)
(highlight-indentation-set-offset tab-width)
(add-hook 'after-save-hook 'narf/add-whitespace nil t))
(remove-hook 'after-save-hook 'narf/add-whitespace t)))
(add-hook 'before-save-hook 'delete-trailing-whitespace))