Emacs: Delete trailing whitespace on save

master
Pierre Neidhardt 2016-10-17 12:41:51 +05:30
parent 8510cb1162
commit 32a2470c34
1 changed files with 1 additions and 3 deletions

View File

@ -145,9 +145,7 @@
;; end.
; (require 'functions) ; for `sanitize'
; (add-hook 'before-save-hook 'sanitize)
;; Remove whitespaces on region, or whole file.
(define-key mickey-minor-mode-map (kbd "C-\\") 'delete-trailing-whitespace)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;; Hippie expand.
;; (define-key mickey-minor-mode-map (kbd "M-/") 'hippie-expand)