Add doom|enable-delete-trailing-whitespace
This commit is contained in:
parent
f3b6a85361
commit
439bbe64fa
1 changed files with 4 additions and 0 deletions
|
@ -250,3 +250,7 @@ If a region is active, copy it into the scratch buffer."
|
||||||
(functionp mode))
|
(functionp mode))
|
||||||
(funcall mode))
|
(funcall mode))
|
||||||
(if text (insert text)))))
|
(if text (insert text)))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom|enable-delete-trailing-whitespace ()
|
||||||
|
(add-hook 'before-save-hook #'delete-trailing-whitespace nil t))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue