sublime-lispindent
sublime-lispindent copied to clipboard
There's wrong indentation for clojure's "defrecord" and "deftype" macros
(defrecord name-of-record [field-1 field-2] __ protocol-name-or-interface-name __ (function-name-1 [param-1 param-2] ________________ (body))) ;<------ WRONG indentation
also: deftype
this is a function definition, but it indents as a function call.
This is something I would really want, but there doesn't seem to be a simple solution. I closed #7 because I didn't think it was viable.
what a pity, this is driving me nuts! :) ended up using cljfmt
I know it's not idiomatic but if you go with:
(defn entry
[target owner]
(reify
om/IRenderState
(render-state
[this {:keys [value channel]}]
(html
[:div]))))
it works