replaced delete-trailing-whitespace with whitespace-cleanup

This commit is contained in:
Bozhidar Batsov 2011-11-23 22:44:49 +02:00
parent 9b57406fe2
commit c3eaf1a415
2 changed files with 3 additions and 4 deletions

View file

@ -340,7 +340,7 @@ there's a region, all lines that region covers will be duplicated."
(interactive)
(prelude-indent-buffer)
(prelude-untabify-buffer)
(delete-trailing-whitespace))
(whitespace-cleanup))
(defun prelude-eval-and-replace ()
"Replace the preceding sexp with its value."

View file

@ -169,9 +169,8 @@
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
;; dispense of trailing whitespace once and for all
(add-hook 'before-save-hook
'delete-trailing-whitespace)
;; keep the whitespace decent all the time
(add-hook 'before-save-hook 'whitespace-cleanup)
;; projectile is a project management mode
(require 'projectile)