As an example of a user-accessible function for customizing indentation, the following can be used with the latest clojure-mode either interactively or from a user's config.
(defun clojure-new-indent (&optional func level) "Set the indentation level of FUNC to LEVEL." (interactive) (let ((func (or func (read-from-minibuffer "function name: " (condition-case nil (which-function) (error nil))))) (level (or level (read-from-minibuffer "indent (number): " "1"))))) (put (if (stringp func) (intern func) func) 'clojure-indent-function (if (stringp level) (string-to-number level) level))) e.g. (clojure-new-indent 'while-let 1) will result in (while-let [something stuff] (body)) rather than (while-let [something stuff] (body)) Cheers -- Eric -- 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