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 defcustom parameter is > used. Many thanks to Steve Yegge for the code. > > Any comments and suggestions would be greatly appreciated.
Thanks for this patch, but stripping trailing whitespace is not a Clojure-specific piece of functionality. I don't think it belongs in clojure-mode itself. If a user wants to add this functionality to clojure-mode (or any mode really) he should just put this in his own configuration: (add-hook 'clojure-mode-hook (lambda () (set (make-local-variable 'before-save-hook) 'delete-trailing-whitespace)) -Phil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---