1

I'm looking for a command equivalent to slimes ,restart. From the tools.nrepl source there appears to be a restart functionality present1.

Any ideas on how do I make nrepl.el call that code?

Community
  • 1
  • 1
PuercoPop
  • 6,707
  • 4
  • 30
  • 40

1 Answers1

2

nrepl-restart is an interactive function, so M-x nrepl-restart.

Michał Marczyk
  • 83,634
  • 13
  • 201
  • 212
  • NB. this doesn't actually call any code from `tools.nrepl`, it just does `nrepl-quit` followed by `nrepl-jack-in`. This kills the Clojure process if it was created by `nrepl-jack-in`; if it wasn't, then it attempts to jack in and fails, but the Clojure process lives on (and you can connect to it again with `M-x nrepl`). – Michał Marczyk Jul 11 '13 at 06:35