summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-03-14 16:04:14 +0100
committerAlan Pearce2023-03-14 16:30:42 +0100
commitf61a949a9a394afd3f21b8e993412630ad73a2e9 (patch)
tree776b0dc0da7a6f330b24218feec03444a1d58b79 /user/emacs
parent5da2e6824ffcc6bbd02767c39bd992bbaf6dc856 (diff)
downloadnixfiles-f61a949a9a394afd3f21b8e993412630ad73a2e9.tar.lz
nixfiles-f61a949a9a394afd3f21b8e993412630ad73a2e9.tar.zst
nixfiles-f61a949a9a394afd3f21b8e993412630ad73a2e9.zip
Emacs: save files with a trailing newline, as expected by posix
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index dc57cd56..c1a7366d 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -157,7 +157,8 @@
 ;;; Encoding
 
 (setq-default bidi-paragraph-direction 'left-to-right)
-(setq bidi-inhibit-bpa t)
+(setq bidi-inhibit-bpa t
+      require-final-newline t)
 
 ;;; Dates & Times