So, I discovered that I really like to format the code on save (I am not the best typer). So emacs to the rescue:
(defun le2m/indent-buffer ()
"indent whole buffer"
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))
(add-hook 'clojure-mode-hook
(lambda ()
(add-hook 'before-save-hook
#'le2m/indent-buffer
t t)))
I did this on clojure-mode but it can be done in any mode I guess.
/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Indent file on save, please