branch: elpa/ws-butler
commit 7d30203cf9db17fabc51813de143dc2064ddac06
Author: Le Wang <[email protected]>
Commit: Le Wang <[email protected]>
forgot to trim blanks in README (oh the irony!)
---
README.md | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 1ba6fe6fc6..4b2404b261 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[](http://travis-ci.org/lewang/ws-butler)
+
## ws-butler -- an unobtrusive way to trim spaces from end of line
- Only lines touched get trimmed. If the white space at end of buffer is
@@ -18,21 +20,21 @@ the data on disk has been cleaned up (revert the buffer to
confirm).
1. I started by to trim all spaces at EOL in source code in a
"write-file-hook", when I started programming. It seemed like a great idea.
-
+
2. Then I got a job working on a code base where no one else trimmed spaces,
so my commits became super noisy. I wanted to stop being the "white space"
police, so switched to [ws-trim][].
* ws-trim works in a `post-command-hook` and trims white space while you
edit.
* This was too eager for me, for example I would stop scroll away to look
- at some code and when I get back to continue, my indentation is gone.
+ at some code and when I get back to continue, my indentation is gone.
* It caused some problems with other customizations which also rely on
`post-command-hook`.
-
+
3. I started experimenting with using `highlight-changes-mode` to trim only
- lines I touch on save.
-
-
+ lines I touch on save.
+
+
## This is the result
[ws-trim]: ftp://ftp.lysator.liu.se/pub/emacs/ws-trim.el