RSS | technovelty home | page of ian | ianw@ieee.org
Whitespace at the end of lines is farily annoying, and wastes space. It also generally annoys other developers if you send patches that introduce white space.
Luckily, emacs can show you with big red blocks where you've left whitespace behind. I think everyone (who hasn't already :) should add something like
(mapc (lambda (hook)
(add-hook hook (lambda ()
(setq show-trailing-whitespace t))))
'(text-mode-hook
c-mode-hook
emacs-lisp-mode-hook
java-mode-hook
python-mode-hook
shell-script-mode-hook))
to their .emacs file right now.
posted at: Fri, 15 Apr 2005 15:11 | in /code/hacks | permalink | add comment (0 others)

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.