Delete trailing whitespaces before-saving

Enable globally because I don't know of a scenario where we would ever
want this.
This commit is contained in:
Laurens Miers 2024-09-12 12:34:31 +02:00
parent b8ef2937f3
commit 9541cfbf44

View file

@ -57,6 +57,12 @@
* General config * General config
** Delete trailing whitespaces
#+BEGIN_SRC emacs-lisp
(add-hook 'before-save-hook 'delete-trailing-whitespace)
#+END_SRC
** Save history and recent files ** Save history and recent files
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -373,5 +379,3 @@ https://github.com/remyferre/comment-dwim-2
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map) (define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map)
(projectile-mode +1) (projectile-mode +1)
) )
#+END_SRC