diff options
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r-- | emacs/.emacs.d/init.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 42854f0..5db6481 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -167,6 +167,21 @@ This is currently the data directory under the ;; whereabouts I am, so they just take up space. (scroll-bar-mode -1) +;;;; Whitespace: +;; I hate it when trailing whitespace is left around a file. I've been +;; using this for years, and apart from having some trouble working +;; with people who don't pay attention to it, it has worked +;; flawlessly. +(ensure-library destroy-trailing-whitespace + :path "vendor-lisp/destroy-trailing-whitespace") +(require 'destroy-trailing-whitespace) +(global-destroy-trailing-whitespace-mode) + +;; Having a final newline at the end of the file is always a good +;; idea. Some programs just don't work without it and others produce +;; some strange results. Github diffs are an example. +(setq require-final-newline t) + ;;;; Minor modes: ;;;;; Paredit: |