Trond Norbye's Weblog

« Previous day (Sep 14, 2009) | Main | Next day (Sep 15, 2009) »

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!


Valid HTML! Valid CSS!

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