From c3eaf1a415dcae47c34427ee50766990468d3ca3 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 23 Nov 2011 22:44:49 +0200 Subject: [PATCH] replaced delete-trailing-whitespace with whitespace-cleanup --- modules/prelude-core.el | 2 +- modules/prelude-editor.el | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/prelude-core.el b/modules/prelude-core.el index 97b1c6f..22a896c 100644 --- a/modules/prelude-core.el +++ b/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." diff --git a/modules/prelude-editor.el b/modules/prelude-editor.el index f9dbc7d..25a25ef 100644 --- a/modules/prelude-editor.el +++ b/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)