[cairo] War on trailing whitespace
Steven Chaplin
stevech1097 at yahoo.com.au
Tue Jun 6 18:02:11 PDT 2006
On Tue, 2006-06-06 at 18:51 -0500, Cory Watson wrote:
> On 6/6/06, Carl Worth <cworth at cworth.org> wrote:
> > Fortunately, git provides a nice, (but inactive by default), mechanism
> > for avoiding the introduction of trailing whitespace. I'm asking all
> > cairo developers to enable the default pre-commit hook which will
> > complain about trailing whitespace. The way to do this is to simply
> > run:
>
> For the vim'ing among us, I use this:
>
> set list listchars=trail:.
>
> trailing spaces are highlighted with periods so they are easily
> visible. I'm sure someone else can chime in with similar tips for
> other editors.
>
For emacs users:
(setq show-trailing-whitespace t)
in .emacs, will display trailing whitespace as red blocks
Meta-x delete-trailing-whitespace
Deletes all the trailing whitespace across the current buffer.
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the cairo
mailing list