Fork me on GitHub
#spacemacs
<
2017-06-14
>
mike_ananev11:06:03

Hi! I'm using Spacemacs and opened two repl processes: 1- jvm, 2-cljs +figwheel. When I send cljs S-exp to REPL I got a stacktrace, cause S-exp is evaluated in JVM repl. How to send CLJS S-exp to appropriate repl?

jstokes13:06:14

@mike1452 I start figwheel from my clj repl via (figwheel-sidecar.repl-api/start-figwheel!) and then the cljs repl with (figwheel-sidecar.repl-api/cljs-repl). if you’ve used cider-connect to connect or cider-jack-in to start that clj repl, your cljs forms should be evaluated in that repl

jstokes13:06:11

:thumbsup:

fedreg15:06:10

Hi all, brand new to spacemacs from vim. How can I remap jk to esc? thx!

Richard15:06:45

(setq-default evil-escape-sequence "jk")

fedreg15:06:37

ahh I had forgotten the hyphen after setq! Thx!!

Richard15:06:33

(setq-default evil-escape-sequence "jk" evil-escape-unordered-key-sequence "true" evil-escape-unordered-key-sequence 0.5)

fedreg15:06:00

…actually I hadn’t forgotten that but it wasn’t working. I just pasted it in at the top of the init and it works. much to learn

Richard15:06:56

I use ,. instead of jk, because Dvorak.

fedreg15:06:40

so the unordered key sequence means I can use kj as well? and the float?

Richard15:06:16

Yes. < 0.5 seconds and it will escape.

Richard15:06:50

Longer than 0.5 and it will type jk

fedreg15:06:09

Excellent. thanks for the help!

Richard15:06:29

You're welcome.

Richard16:06:30

Typo! Copied incorrectly as not at my desk - (setq-default evil-escape-sequence "jk" evil-escape-unordered-key-sequence "true" evil-escape-delay 0.5)

fedreg17:06:18

@richard. Thx! Hadn’t copied that portion in yet so no prob. Thanks for the correction!