about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-08-06T22·58+0200
committerVincent Ambo <vincent@spotify.com>2013-08-06T22·58+0200
commit494cda1ac0728f20b6a6372a6cc5c51aa248a71b (patch)
tree8118760ff6b1182345b1dfdd59049c787494467e
parent503600091e63ebe63c8a84ec6b8a6120ff89dc23 (diff)
Require a final newline on both visiting and saving a file
-rw-r--r--.gitignore2
-rw-r--r--init-custom.el3
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 2456e9d97e77..620c180555b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,4 @@ init-irc.el
 init-local.el
 other/
 scripts/
-themes/
\ No newline at end of file
+themes/
diff --git a/init-custom.el b/init-custom.el
index 2b2916143f6d..22e37bfa62b4 100644
--- a/init-custom.el
+++ b/init-custom.el
@@ -14,7 +14,8 @@
     (capitalized-words-mode turn-on-haskell-decl-scan turn-on-haskell-doc turn-on-hi2)))
  '(it-mode-google-cmd "/usr/local/share/python/google")
  '(ns-alternate-modifier (quote none))
- '(ns-command-modifier (quote meta)))
+ '(ns-command-modifier (quote meta))
+ '(require-final-newline (quote visit-save)))
 (custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.