I'm using (emacs) clojure-mode 1.7.1 and I'm not happy with the how it
indents method definitions, e.g. in reify:


| (reify ItemListener
|        (itemStateChanged
|         [this e]
|         (f (selected? e))))

The fact that Protocols method name, arg list and method body are all
indented to nearly the same level makes multiple methods and even
multiple protocols all kind of mush together visually.  Is there any
way to hack or customize clojure-mode to get something like this:

| (reify ItemListener
|       (itemStateChanged
|           [this e]
|           (f (selected? e))))

or (even nicer)

| (reify ItemListener
|       (itemStateChanged [this e]
|           (f (selected? e))))

I also have my troubles with letfn such that I find myself just always
using let as a result. (i.e. my editor's ugly indentation defaults
drive my choice of construct -- how demented is that?)

Any tips?

// Ben

-- 
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

Reply via email to