List all Keybindings for a certain emacs mode

不羁岁月 提交于 2019-11-27 09:59:12

问题


I know that I can list all the keybidings avaliable in emacs by using C-h b, but is it possible to list only the keybindings that apply to a certain mode, say dired-mode.

In dired+, I can do

?
h

and it shows me all the applicable dired mode keybindings.

Thanks


回答1:


use C-h m or M-x describe-mode




回答2:


Not sure what the question is. C-h b shows you all of the key bindings currently available (i.e., in the current mode).

If you want to see only the key bindings provided by a mode's own keymap, then use library help-fns+.el and hit C-h M-k. You are prompted for the keymap variable (e.g. dired-mode-map).

http://www.emacswiki.org/emacs/help-fns%2b.el



来源:https://stackoverflow.com/questions/3675835/list-all-keybindings-for-a-certain-emacs-mode

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