Created
November 5, 2009 20:45
-
-
Save defunkt/227361 to your computer and use it in GitHub Desktop.
Reduce your carbon footprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Reduce your carbon footprint | |
| Vim | |
| `autocmd BufWritePre * :%s/\s\+$//e` | |
| Emacs | |
| `(add-hook 'before-save-hook 'delete-trailing-whitespace)` | |
| Textmate | |
| <http://blogobaggins.com/2009/03/31/waging-war-on-whitespace.html> | |
| In your existing codebase | |
| `find . -name '*.rb' | xargs perl -pi -e 's/ +$//'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment