branch: elpa/ws-butler
commit 106d313c0dad532c2da3cc78770a8a2f0396aa85
Author: Le Wang <[email protected]>
Commit: Le Wang <[email protected]>
Fix package problems; bump version to 0.3.
---
ws-butler.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/ws-butler.el b/ws-butler.el
index 8e7c5c2c8c..404cf3ae56 100644
--- a/ws-butler.el
+++ b/ws-butler.el
@@ -1,4 +1,4 @@
-;;; ws-butler.el --- unobtrusively remove trailing whitespace
+;;; ws-butler.el --- Unobtrusively remove trailing whitespace.
;; this file is not part of Emacs
@@ -53,17 +53,23 @@
;;; Code:
-(eval-when-compile (require 'cl))
+(eval-when-compile
+ (require 'cl)
+ (require 'hilit-chg))
+
+(defgroup ws-butler nil
+ "Unobtrusively whitespace deletion like a butler."
+ :group 'convenience)
(defcustom ws-butler-keep-whitespace-before-point
+ t
"Keep whitespace at current point after save.
This is particularly to preserve indentation.
N.B. The spaces are removed in the file on disk. So in a sense
-only the \"virtual\" space is preserved in the buffer.
-"
- t)
+only the \"virtual\" space is preserved in the buffer."
+ :group 'ws-butler)
(defvar ws-butler-saved)