Re: Add whitespace cleanup support

2009-12-20 Thread Stephen C. Gilardi
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.

Re: Add whitespace cleanup support

2009-11-08 Thread Phil Hagelberg
On Nov 4, 9:07 pm, Lauri Oherd lauri.oh...@gmail.com 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