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)
|
(interactive)
|
||||||
(prelude-indent-buffer)
|
(prelude-indent-buffer)
|
||||||
(prelude-untabify-buffer)
|
(prelude-untabify-buffer)
|
||||||
(delete-trailing-whitespace))
|
(whitespace-cleanup))
|
||||||
|
|
||||||
(defun prelude-eval-and-replace ()
|
(defun prelude-eval-and-replace ()
|
||||||
"Replace the preceding sexp with its value."
|
"Replace the preceding sexp with its value."
|
||||||
|
|
|
@ -169,9 +169,8 @@
|
||||||
(require 'yasnippet) ;; not yasnippet-bundle
|
(require 'yasnippet) ;; not yasnippet-bundle
|
||||||
(yas/initialize)
|
(yas/initialize)
|
||||||
|
|
||||||
;; dispense of trailing whitespace once and for all
|
;; keep the whitespace decent all the time
|
||||||
(add-hook 'before-save-hook
|
(add-hook 'before-save-hook 'whitespace-cleanup)
|
||||||
'delete-trailing-whitespace)
|
|
||||||
|
|
||||||
;; projectile is a project management mode
|
;; projectile is a project management mode
|
||||||
(require 'projectile)
|
(require 'projectile)
|
||||||
|
|
Loading…
Reference in a new issue