mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add doom|enable-delete-trailing-whitespace
This commit is contained in:
@ -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))
|
||||||
|
Reference in New Issue
Block a user