Created
November 5, 2009 20:45
-
-
Save defunkt/227361 to your computer and use it in GitHub Desktop.
Revisions
-
defunkt revised this gist
Nov 5, 2009 . 1 changed file with 8 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,15 @@ ### 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/ +$//'` -
defunkt revised this gist
Nov 5, 2009 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,3 @@ Vim `autocmd BufWritePre * :%s/\s\+$//e` -
defunkt renamed this gist
Nov 5, 2009 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
defunkt created this gist
Nov 5, 2009 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ ### 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/ +$//'`