Browse Source

replaced delete-trailing-whitespace with whitespace-cleanup

custom
Bozhidar Batsov 14 years ago
parent
commit
c3eaf1a415
  1. 2
      modules/prelude-core.el
  2. 5
      modules/prelude-editor.el

2
modules/prelude-core.el

@ -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."

5
modules/prelude-editor.el

@ -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)

Loading…
Cancel
Save