This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-07
Channels
- # beginners (19)
- # cider (20)
- # cljs-dev (2)
- # cljsjs (2)
- # clojure (61)
- # clojure-spec (13)
- # clojure-uk (12)
- # clojurescript (12)
- # core-typed (1)
- # cursive (16)
- # data-science (30)
- # datomic (37)
- # fulcro (8)
- # hoplon (7)
- # jobs-discuss (1)
- # onyx (21)
- # planck (18)
- # protorepl (1)
- # re-frame (2)
- # reagent (1)
- # shadow-cljs (6)
- # tools-deps (4)
@arrdem Ha, I'll add it to my list. š
The benefit of alter-meta!
is that if others are using the spec, it will work for them too. Does anything like cljfmt
use this spec?
Not at present. There's a years old ticket to make cljfmt support CIDER's indent specs or otherwise get some commonality.
Oh nice, it appears there's been some progress recently: https://github.com/weavejester/cljfmt/issues/49
Depending on how that ends up getting the metadata, it may be best not to have a custom set variable in Emacs.
I'm extremely not holding my breath for that. Static analysis of Clojure is more effort than it's worth. Especially for something like symbol metadata.
@arrdem this metadata tends to be placed inline, which means that this might actually work.
I still think this is one of the most reasonable approaches to be specifying indentation. And Iām still optimistic that more editor are going to support this.
I guess itās just a matter of generating indentation rules on the fly as we do in Emacs. Based on your reaction I guess the answer currently is ānoā. š
I'm waiting for the format code op in cider to support it. It's not currently supported though, no. I'd need to make some breaking changes to vim things, and I'm not sure I can. Haven't looked hard though.
Honestly if we asked Colin if he would be open to support this we would have 85% of clojure editors it seems. At that point it doesn't matter what anyone on the clojure side says
Yeah, thatās probably true. @U0567Q30W What do you think about this?
@dominicm So, I guess you need https://github.com/weavejester/cljfmt/issues/49 then. Isnāt it possible to extend the indentation rules for vim on the fly as we do for Emacs?
Cursive doesnāt support this right now, but itās something Iāve been meaning to look at. I suspect it should be possible (and hopefully relatively easy) but there are always tricky edges around things like comments and metadata.