This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-08
Channels
- # admin-announcements (3)
- # beginners (284)
- # boot (179)
- # cider (15)
- # cljs-dev (6)
- # cljsrn (95)
- # clojure (105)
- # clojure-austria (4)
- # clojure-berlin (9)
- # clojure-germany (4)
- # clojure-japan (3)
- # clojure-russia (65)
- # clojurebridge (1)
- # clojurescript (109)
- # code-reviews (16)
- # cursive (27)
- # datavis (19)
- # datomic (68)
- # devcards (7)
- # funcool (31)
- # jobs (1)
- # ldnclj (2)
- # lein-figwheel (3)
- # leiningen (4)
- # off-topic (419)
- # om (255)
- # parinfer (39)
- # portland-or (2)
- # re-frame (28)
- # reagent (14)
- # slack-help (12)
- # spacemacs (1)
I’m a total IntelliJ/Cursive noob. Is it possible to define custom indentation for macros used in cljs files (specifically om.next/defui
)?
@noonian: which version of Cursive are you on? Very recent versions support defui and indent it correctly.
@cfleming: I’m on 0.1.72-15, just installed IDEA 15 CE and the non development version of cursive
Well, I just opened a file that was already indented correctly, but emacs tab is treating it like a normal function it looks like
Hmm, ok, there’s sometimes a difference between what reformatting the file does and what emacs tab does, which is annoying. There’s a bug there somewhere I haven’t managed to find.
How can I test normal indentation? hitting enter form the top line puts the cursor at the same spot as emacs tab indents it to
Ok, see how defui is highlighted in yellow? That means that Cursive can’t resolve it, which means that it doesn’t know what the form is and it won’t indent it properly (or do anything else with it either).
Ok, can you open your leiningen toolwindow (View->Toolwindows->Leiningen) and see if your project is registered there?
If it isn’t, find the project.clj in the project window, right click, add as leiningen project.
yes it is, and an om snapshot is also registered, maybe because I have a symlink in checkouts of my lein project?
@noonian: No worries, sorry for the hassle. I’ve filed https://github.com/cursiveclojure/cursive/issues/1188 so I don’t forget about it.
Ok, well I added back the checkouts and symlink and restarted and its still working so it may have been my system initializing or something or possibly because I had the checkout when I created the project from existing sources.
@noonian: Bizarre. I’ll look at that issue and see if I can reproduce, if not I’ll put it down to planet alignment.
Is that generally the process by the way. I have a feature request, pretty minor I think (it might not be). Do we post them on GitHub?