I've been caught up in long running computations lately thanks to Project Euler and I'd like to know how to abort an evaluation and return to the REPL prompt. I'm running the standard Clojure Box version of Emacs. I tried the obvious REPL > Interrupt Lisp Process and Slime > Interrupt Command but neither kill the execution and return my REPL prompt.
Hit control c twice. If you're in *slime-repl clojure*
then C-c C-c will kill the process and return you to the repl prompt. If you're in the *inferior-lisp*
buffer, then you'll probably kill the clojure process, meaning that you'll have to restart slime (with M-x slime
). If you don't have a slime repl buffer then, M-x slime-repl
should give you one. You can use this as a repl to get a few extra features (try pressing the comma and tab, and see what's available ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With