On Nov 8, 2009, at 6:03 PM, Phil Hagelberg wrote:
> (add-hook 'clojure-mode-hook (lambda () (set (make-local-variable
> 'before-save-hook) 'delete-trailing-whitespace))
One wrinkle here is that in Clojure "," is whitespace. It would be nice not to
strip out trailing commas within doc strings.
On Nov 4, 9:07 pm, Lauri Oherd wrote:
> With this patch, the trailing whitespace characters in clojure file
> buffer will be deleted automatically before each save if custom
> parameter 'clojure-mode-cleanup-whitespace' is set.
>
> This is based on the js2-mode where similar defcustom parameter i