From 494cda1ac0728f20b6a6372a6cc5c51aa248a71b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 7 Aug 2013 00:58:14 +0200 Subject: Require a final newline on both visiting and saving a file --- .gitignore | 2 +- init-custom.el | 3 ++- 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. -- cgit 1.4.1