From b4310dc3bc90e8f6689b44183d252b344c8651fe Mon Sep 17 00:00:00 2001 From: John Doty Date: Fri, 26 Jun 2015 07:25:52 -0700 Subject: [PATCH] Cleanup whitespace before saving --- .emacs.d/core.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index cd1f550..9d49f40 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -240,6 +240,9 @@ ;; We're going to stop doing ido and start doing helm, maybe? (require 'ido) +;; Cleanup all the whitespaces. +(add-hook 'before-save-hook 'whitespace-cleanup) + ;; ================================================================= ;; Text mode configuration. ;; =================================================================