Eric Kow <[email protected]> writes:
> I'd appreciate it if in the future, you'd take care to remove the
> trailing whitespaces from your patches.  Just a silly pet peeve :-)

Emacs users can use show-trailing-whitespace to catch themselves, and
C-u M-x whitespace cleanup RET to fix whitespace in the current buffer.

Examples for .emacs:

    ;; Enable showing of whitespace everywhere, except for w3m, because
    ;; it has a lot of trailing whitespace for tables, grr.
    (setq-default show-trailing-whitespace t)
    (add-hook 'w3m-mode-hook
      (lambda ()
        (setq show-trailing-whitespace nil)))

    ;; Enable showing of whitespace for specific modes (untested!)
    (mapc (lambda (x) (add-hook x (lambda () (setq show-trailing-whitespace 
t))))
          '(emacs-lisp-mode-hook lisp-mode-hook slime-repl-mode-hook
            scheme-mode-hook haskell-mode-hook literate-haskell-mode-hook
            python-mode-hook))

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to