[Python-Dev] whitespace normalization
tanzer at swing.co.at
Thu Apr 26 09:28:10 CEST 2007
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Stripping trailing whitespace on saving wouldn't be
> so bad, though. Is there an option for that in python-mode?
I've got thje following in my ~/.emacs:
(if (fboundp 'delete-trailing-whitespace)
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
In modern Emacsen, the `if` should be unnecessary.
Christian Tanzer http://www.c-tanzer.at/
More information about the Python-Dev