Delete trailing whitespace, globally, by default

Also adds doom|disable-delete-trailing-whitespace hook, which can be
used to disable this behavior on a per-buffer basis. If you want to turn
off this global behavior:

  (remove-hook 'write-file-functions #'delete-trailing-whitespace)
This commit is contained in:
Henrik Lissner 2018-08-30 20:13:43 +02:00
parent fcf2a26329
commit edc9bf70af
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 18 additions and 10 deletions

View file

@ -50,7 +50,7 @@
(add-hook! 'emacs-lisp-mode-hook
#'(;; 3rd-party functionality
auto-compile-on-save-mode doom|enable-delete-trailing-whitespace
auto-compile-on-save-mode
;; fontification
rainbow-delimiters-mode highlight-quoted-mode
;; initialization