Fork me on GitHub
#cider
<
2017-05-11
>
asolovyov07:05:42

Hey all! How do I switch to "cljs" mode in cider? So that in .cljc files :cljs part will be highlighted?

asolovyov07:05:50

because right now it looks like a comment 🙂

jumar07:05:47

@asolovyov you can activate clojurescript-mode. But if you want to do anything useful you need to also start clojurescript REPL

asolovyov07:05:00

emacs warns me that I can have problems if I'm activating it instead of clojurec-mode 🙂

jumar07:05:19

try cider-jack-in-clojurescript - you should be just fine. Of course, if you rely on some browser stuff (e.g. XMLHttpRequest) then you'll find browser-connected repl

asolovyov07:05:53

yeah, I've connected to my figwheel repl

jumar07:05:54

btw. you may want to add [com.cemerick/piggieback "0.2.1"] as a dependency

asolovyov07:05:00

but I don't know how to tell cider about it

jumar07:05:00

ah, great

asolovyov07:05:10

so that this part of code will become active 🙂

jumar07:05:14

It's been a while since I was doing the cljs stuff, so I don't have the exact procedure at the top of my head

bozhidar07:05:49

Just keep this in mind 😉

bozhidar07:05:35

As for the highlighting - it changes by itself when the default connection gets changed from clj to cljs and vise-versa.

ccann20:05:23

is there a way to make CIDER or clojure-mode format docstring-like arguments for macros as comment face not string face? (e.g. schema.core/defn and mount.core/defstate)