[MERGE] rip off the trailing whitespace band-aid
Ben Finney
bignose+hates-spam at benfinney.id.au
Mon Feb 23 22:21:16 GMT 2009
John Arbash Meinel <john at arbash-meinel.com> writes:
> For people who want to configure VIM to help here, you can add this
> to ~/.vim/filetype.vim:
>
> " Watch out for trailing newlines in any python code
> au BufNewFile,BufRead *.py match Error /\s\+$/
> au BufNewFile,BufRead *.pyx match Error /\s\+$/
>
> Does anyone know what 'emacs' can give you to help with trailing
> whitespace?
Set the variable ‘show-trailing-whitespace’ to highlight it in buffers.
Use the command ‘M-x delete-trailing-whitespace’ to remove all
trailing whitespace from a buffer.
More automatically, the ‘whitespace’ minor mode helps working with
whitespace <URL:http://www.emacswiki.org/emacs/WhiteSpace> and is
included in versions of GNU Emacs from 22 onward.
--
\ “Roll dice!” “Why?” “Shut up! I don't need your fucking |
`\ *input*, I need you to roll dice!” —Luke Crane, demonstrating |
_o__) his refined approach to play testing, 2009 |
Ben Finney
More information about the bazaar
mailing list