From 5c8f47dbc4d72fb662381359cbf3b97eb97efc76 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Fri, 23 Feb 2018 12:22:54 -0800 Subject: [PATCH] Remove trailing whitespace on save --- emacs.d/init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs.d/init.el b/emacs.d/init.el index eb73c08..4206906 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -74,6 +74,8 @@ space-after-tab space-before-tab space-mark tab-mark)) (setq-default fill-column 80) + +(add-hook 'before-save-hook 'delete-trailing-whitespace) ;; End display ;; Auto generated config