Emacs: print key binding for a command or list all key bindings

大憨熊 提交于 2019-11-29 18:42:25
  1. C-h f (or M-x describe-function) will show you the bindings for a command.

  2. You are correct, C-h b (or M-x describe-bindings) will show you all bindings. C-h m (M-x describe-mode) is also handy to list bindings by mode.

You might also try C-h k (M-x describe-key) to show what command is bound to a key. For instance, on my machine save-buffers-kill-emacs isn't bound to anything, but C-h k C-x C-c tells me that C-x C-c is bound to save-buffers-kill-terminal. It will list all bindings for the command at the same time.

How about just

M-x where-is <COMMAND>

You get the same information as you'd get with C-h f.

Also bound to C-h w, <f1> w and <help> w.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!