[PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-17 Thread Tomi Ollila
On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements wrote: > Cleanup is the type of pain that should only be suffered once, so I'd > be much happier with this if there was an accompanying git hook that > prevented more mis-formatted code from slipping in. We'd need a script to be called from .git

[PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-17 Thread Austin Clements
Quoth Tomi Ollila on Jan 17 at 12:46 pm: > On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements > wrote: > > Cleanup is the type of pain that should only be suffered once, so I'd > > be much happier with this if there was an accompanying git hook that > > prevented more mis-formatted code from sli

Re: [PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-17 Thread Austin Clements
Quoth Tomi Ollila on Jan 17 at 12:46 pm: > On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements wrote: > > Cleanup is the type of pain that should only be suffered once, so I'd > > be much happier with this if there was an accompanying git hook that > > prevented more mis-formatted code from slippi

Re: [PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-17 Thread Tomi Ollila
On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements wrote: > Cleanup is the type of pain that should only be suffered once, so I'd > be much happier with this if there was an accompanying git hook that > prevented more mis-formatted code from slipping in. We'd need a script to be called from .git

[PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-16 Thread Austin Clements
Cleanup is the type of pain that should only be suffered once, so I'd be much happier with this if there was an accompanying git hook that prevented more mis-formatted code from slipping in. Quoth Tomi Ollila on Jan 16 at 11:04 am: > diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el > index

Re: [PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-16 Thread Jameson Graef Rollins
On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements wrote: > Cleanup is the type of pain that should only be suffered once, so I'd > be much happier with this if there was an accompanying git hook that > prevented more mis-formatted code from slipping in. Agreed. However, if we're really going t

[PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-16 Thread Jameson Graef Rollins
On Mon, 16 Jan 2012 23:32:00 -0500, Austin Clements wrote: > Cleanup is the type of pain that should only be suffered once, so I'd > be much happier with this if there was an accompanying git hook that > prevented more mis-formatted code from slipping in. Agreed. However, if we're really going t

Re: [PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-16 Thread Austin Clements
Cleanup is the type of pain that should only be suffered once, so I'd be much happier with this if there was an accompanying git hook that prevented more mis-formatted code from slipping in. Quoth Tomi Ollila on Jan 16 at 11:04 am: > diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el > index

[PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-16 Thread Tomi Ollila
Run (whitespace-cleanup) and (indent-region (point-min) (point-max)) to all elisp files in emacs/ which: removed trailing whitespace and empty lines at the end of file removed spaces before tab (if any) converted 8 spaces to tabs in the beginning of line changed amount of whitespace in the

[PATCH 2/3] emacs: whitespace-cleanup and indent-region for emacs/*.el files

2012-01-16 Thread Tomi Ollila
Run (whitespace-cleanup) and (indent-region (point-min) (point-max)) to all elisp files in emacs/ which: removed trailing whitespace and empty lines at the end of file removed spaces before tab (if any) converted 8 spaces to tabs in the beginning of line changed amount of whitespace in the