I wish to achieve what a C-c (send a keyboardinterrupt) would do in a terminal outside of Emacs. How do I do that in Emacs shell mode?

  • Please specify what that C-c behavior outside Emacs is, to make this Q&A more helpful for others. Thx.
    – Drew
    Jan 2, 2021 at 17:37

1 Answer 1


In Shell mode (and many other modes that run an external command interpreter), press C-c C-c (comint-interrupt-subjob). That's the C-c prefix of mode-specific commmands, followed by C-c which is chosen to be like C-c in a plain terminal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.