Fork me on GitHub
#cider
<
2016-09-15
>
jaerme03:09:31

how do i enable paredit-mode in cider? i tried M-x paredit-mode in the cider repl, but to no avail.

bozhidar08:09:17

well, that’s exactly what you need to do (provided paredit is installed)

bozhidar08:09:05

and you can always add this to your config

bozhidar08:09:15

(add-hook ‘cider-repl-mode ‘paredit-mode)

borkdude13:09:36

does navigating to a function work in cljs in cider?

borkdude13:09:49

for some definition of work 🙂

borkdude13:09:27

@bozhidar doesn’t CIDER come with smart-parens by default?

bozhidar13:09:54

it comes with nothing by default 🙂

bozhidar13:09:10

yes, navigating to a definition works with cljs

borkdude13:09:50

@bozhidar I have a boot project and I’m connect to the nrepl session. What should I do in order to navigate in cljs? I get: not resolved.

bozhidar15:09:45

did you load the namespace first?

borkdude16:09:50

@bozhidar what does loading mean when I’m in emacs and the clojurescript is running in the browser?

borkdude16:09:10

so I need to be connected to a cljs repl

mitchelkuijpers19:09:36

@borkdude you need to run (start-repl) with boot for example

mitchelkuijpers19:09:55

then it will detect that it is a clojure repl

mitchelkuijpers19:09:03

or you could set a setting in cider and use cider-create-sibling-cljs-repl when you are connected to nrepl that way you’ll always have two repls one for clojure and one for clojurescript

borkdude19:09:10

cider-create-sibling-cljs-repl seemed to work… amazing 🙂

mitchelkuijpers20:09:12

Cool, I love that command makes starting everything way easier

borkdude20:09:04

I don’t know why it started a Rhino repl though 🙂

borkdude20:09:12

but for navigation it works

dpsutton20:09:29

Rhino repl is the default. When cider launches a clojure script repl, if it doesn't know which one it defaults to rhino

borkdude20:09:36

so I guess boot’s (start-repl) is preferable if you also want to interact with the browser

dpsutton20:09:41

not necessarily

dpsutton20:09:49

cider starts it for you automatically

dpsutton20:09:51

i set this and cider starts up the correct repl for me. Each repl has different incantations to get i tup and running. this one work sfor me. I'm new to cljs side though and don't have much boot experience

mitchelkuijpers20:09:35

I have this Cider Cljs Lein Repl: Value Menu Custom: (start-repl)

mitchelkuijpers20:09:54

this works for boot even though it states Lein it has nothing todo with that

dpsutton20:09:10

sounds like some documentation needs to be cleaned up

dpsutton20:09:49

@borkdude it sounds like just set cider-cljs-lein-repl to whichever value it needs to be and then not worry about it

mitchelkuijpers20:09:59

As long as it gets you a cljs repl you are fine 🙂

borkdude20:09:46

I’ve put this in my init.el: (setq cider-cljs-lein-repl "(do (ns boot.user) (start-repl))”)

borkdude20:09:07

and this works for me

borkdude20:09:11

@bozhidar ah, I meant prelude when I mentioned smartparens 😃