From 425c0318851fbd88485185f1be091af7c56c794d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 25 Jul 2016 22:14:22 +0200 Subject: Add some whitespace settings --- emacs/.emacs.d/init.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'emacs/.emacs.d/init.el') 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: -- cgit v1.2.3-54-g00ecf