replace whitespace-cleanup with delete-trailing-whitespace

whitespace-cleanup seems to do some formatting, tabs-to-whitespace and
vice versa,... which are kinda annoying.

We should be fine for now with just removing trailing whitespaces.
This commit is contained in:
Laurens Miers 2025-07-24 10:24:01 +02:00
parent 706b396e1c
commit 423acecb38

View file

@ -77,7 +77,7 @@ The audible bell is annoying AF.
#+BEGIN_SRC emacs-lisp
(use-package whitespace
:ensure nil
:hook (before-save-hook . whitespace-cleanup)
:hook (before-save-hook . delete-trailing-whitespace)
;; if we wanna remove this hook at any time, eval:
;; (remove-hook 'before-save-hook #'whitespace-cleanup)
)