Fork me on GitHub
#cider
<
2017-05-05
>
ag00:05:02

can somebody tell me how cider-format-edn-buffer works? it uses Clojure’s native function right?

ag00:05:56

So here’s my problem… We’re using latest Clojurescript, but on the back-end we’re still using 1.8. So if Clojurescript generates a map with a new fully-qualified map syntax and I try to cider-format-edn that - it fails

ag00:05:02

my guess because it uses Clojure and the version I have is 1.8 (the one that doesn’t understand new map format).

benny01:05:26

is there a way to format my code according to some sort of style?

benny01:05:49

i.e. I would like both my keys and values in maps to line up

jfntn04:05:38

@benny C-c SPC will do that

benny04:05:07

awesome that was exactly what i was looking for!

xiongtx21:05:06

benny: Check out aggressive-indent-mode: https://github.com/Malabarba/aggressive-indent-mode Performance can be poor for large, deeply-nested forms, but in most cases it’s fine

benny21:05:27

sweet, thanks @

benny21:05:19

seems like it might be kind of a lot to take in while coding?

benny21:05:41

I’d prefer to intentionally format something than for it to be formatting on the fly

xiongtx20:05:48

I find that it works quite well in practice (and not only for clj). As I mentioned, performance is a real problem w/ large, deeply-nested forms. This is exacerbated by the fact that emacs is slow on Mac (vs. Linux).

benny04:05:14

thanks @jfntn

jfntn04:05:03

@ag I think you stated the problem, cider does run on the JVM afterall

nooga23:05:47

I did M-x cider-jack-in-clojurescrpit, got 2 repls, got user.cljs> but when I try (figwheel-sidecar.repl-api/fig-status) it screams at me

nooga23:05:14

the project is generated from the figwheel template

nooga23:05:23

what am I missing?

gmercer23:05:17

@nooga try (fig-status)