Add working whitespace cleanup

This commit is contained in:
Maciej Szlosarczyk 2017-08-26 01:08:30 +03:00
parent 1390969075
commit 58b79e0a74
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E

View file

@ -63,6 +63,7 @@
(setq whitespace-style '(face trailing empty)) (setq whitespace-style '(face trailing empty))
(add-hook 'before-save-hook 'delete-trailing-lines) (add-hook 'before-save-hook 'delete-trailing-lines)
(add-hook 'before-save-hook 'whitespace-cleanup) ; Cleanup whitespace on save
;; Tabs are spaces and are general at 2. Guide indent with lines ;; Tabs are spaces and are general at 2. Guide indent with lines
(setq-default indent-tabs-mode nil) (setq-default indent-tabs-mode nil)