replaced delete-trailing-whitespace with whitespace-cleanup
This commit is contained in:
parent
9b57406fe2
commit
c3eaf1a415
2 changed files with 3 additions and 4 deletions
|
@ -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."
|
||||
|
|
|
@ -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…
Reference in a new issue