Permalink
Browse files

Added delete-trailing-whitespace to before-save-hook

  • Loading branch information...
1 parent adb149f commit 854aefa36dda3d13c5146561a8f613b98ca72dc0 @pmn committed Dec 5, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 init.el
View
@@ -22,6 +22,9 @@
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
+;; delete trailing whitespace on save
+(add-hook 'before-save-hook 'delete-trailing-whitespace)
+
;; addons
(add-to-list 'load-path "~/.emacs.d/")
(add-to-list 'load-path "~/.emacs.d/modes/")

0 comments on commit 854aefa

Please sign in to comment.