From f024fc845eca776cdcc81c459b4f19fc23389553 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 24 Oct 2022 11:03:43 -0400 Subject: [PATCH] Always require a final newline on file save --- emacs/.emacs.d/config/init-defaults.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-defaults.el b/emacs/.emacs.d/config/init-defaults.el index 7680d13..579084d 100644 --- a/emacs/.emacs.d/config/init-defaults.el +++ b/emacs/.emacs.d/config/init-defaults.el @@ -24,6 +24,8 @@ ;; Always display line numbers in text/programming modes (add-hook 'prog-mode-hook #'display-line-numbers-mode) - (add-hook 'text-mode-hook #'display-line-numbers-mode)) + (add-hook 'text-mode-hook #'display-line-numbers-mode) + :custom + (require-final-newline t)) (provide 'init-defaults)