Trond Norbye's Weblog

« Don't log, dump... | Main | memcapable »

http://blogs.sun.com/trond/date/20090915 Tuesday September 15, 2009

Trailing whitespace

If you are an emacs user and don't want your source code to include trailing whitespaces, try adding the following to your ~/.emacs file:

(add-hook 'before-save-hook 'delete-trailing-whitespace)

This will automatically remove all trailing whitespaces from your buffer before saving your file!

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.