Fork me on GitHub
#emacs
<
2015-12-28
>
rcoedo16:12:11

I’m setting up emacs to work with figwheel. I use ring to serve a clojurescript application and I want to be able to eval both clojure and clojurescript code.

rcoedo16:12:26

do I need to launch two cider instances and connect each buffer to the right cider?

rcoedo16:12:43

I’m a bit lost with all this 😅

roberto16:12:01

I would guess so. I personally don’t use cider + figwheel. But I imagine you need two cider instances because you basically have two repls running (clojure & clojurescript).

rcoedo16:12:18

are you aware if there is a way of telling cider which repl use based on the file extension?

rcoedo16:12:21

I guess I can live with figwheel outside of emacs anyway but it would be great simple_smile

roberto16:12:08

there is a wiki in the figwheel repo about how to do that

rcoedo16:12:16

oh, thanks a lot!

malabarba16:12:01

@rcoedo cider will do that automatically

malabarba16:12:21

The file extension thing

malabarba16:12:10

As for how to start the figwheel repl

malabarba16:12:31

I think there are several ways

rcoedo16:12:10

@malabarba: then I’m probably missing something 😞

rcoedo16:12:01

I run cider-jack-in-clojurescript, which launches a nrepl server and two cider buffers: one for clojure and another one with figwheel

rcoedo16:12:55

but I need to tell emacs to use the cljs cider process with cider-assoc-buffer-with-connection

rcoedo17:12:16

otherwise I cant eval clojurescript in that buffer

malabarba17:12:18

Hm... That shouldn't be necessary

malabarba17:12:55

Do you think you can share a minimal project for us to reproduce that?

malabarba17:12:32

Also, do you get any warnings on the repl buffers?

rcoedo17:12:56

no warnings

rcoedo17:12:08

this is the project

rcoedo17:12:14

also, I have this in my init.el

malabarba21:12:07

@rcoedo: I assume cider is in your profiles.clj?