How to terminate the process in cider-repl?

cranehuang picture cranehuang · Nov 17, 2014 · Viewed 8.3k times · Source

When running into a deadlock because of an infinite loop, how can I exit from the cider-repl?

When it happens, I have to kill the emacs, or even reboot my computer to kill the cider-repl. Is there a better way of solving this?

Answer

noisesmith picture noisesmith · Nov 17, 2014

The key combination C-c C-c will break from a loop at the top level of the cider repl, while leaving emacs and the repl running.

In a regular terminal repl, the equivalent is C-c.