1

If I've created custom keybindings, possibly overriding some Emacs default keybindings, is there a way to determine what command a given key would be bound to by default (i.e. if I hadn't overridden that key's binding)?

For example, I'm running Doom Emacs, but trying to follow along with a tutorial that was written for a more vanilla Emacs setup. The tutorial will mention a key to type, without mentioning the intended command.

1
  • 3
    You can try opening another Emacs session without your init file: emacs -Q, and using C-h k to see what the default binding is. If you mean what key is bound by default in some particular situation/setup other than your init file, then put that session in that situation/setup before using C-h k. There may be another, more direct way, but this is probably what I would do.
    – Drew
    Jul 24, 2022 at 20:17

1 Answer 1

0

Making an answer of the comment I added, as I don't see any other answers, so far.

You can try opening another Emacs session without your init file: emacs -Q, and using C-h k to see what the default binding is.

If you mean what key is bound by default in some particular situation/setup other than your init file, then put that session in that situation/setup before using C-h k.

There may be another, more direct way, but this is probably what I would do.

Your Answer

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

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