Add doom|enable-delete-trailing-whitespace

This commit is contained in:
Henrik Lissner 2017-07-17 12:01:45 +02:00
parent f3b6a85361
commit 439bbe64fa
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -250,3 +250,7 @@ If a region is active, copy it into the scratch buffer."
(functionp mode))
(funcall mode))
(if text (insert text)))))
;;;###autoload
(defun doom|enable-delete-trailing-whitespace ()
(add-hook 'before-save-hook #'delete-trailing-whitespace nil t))