Question

Suppose, you type a shortcut key in emacs (say M-x) and you realize that you did not want to do it. How do you undo a shortcut that you already typed?

I have tried Esc-d but that doesn't seem to do what I want. Typing C-g after a wrong input says that the shortcut is not defined.

What I want is a way to immediately come out of all the typed shortcuts and execute new shortcuts immediately.

I hope my problem seems clear.

Was it helpful?

Solution

Cancel is C-g in emacs no matter what the context is.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top