require newlines on all files

This commit is contained in:
opfez 2021-08-02 23:27:44 +02:00
parent a27f3af5ae
commit 8b4af5d175
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@
;; Mark files with shebangs as executable automatically (thanks archenoth!)
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
;; Always require final newline
(setq-default require-final-newline t)
;; delete trailing whitespace before saving
(add-hook 'before-save-hook 'delete-trailing-whitespace)