Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all Keybindings for a certain emacs mode

I know that I can list all the keybindings available 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

like image 301
Nathaniel Saxe Avatar asked Sep 09 '10 10:09

Nathaniel Saxe


People also ask

What is C and M in emacs?

Summary of essential emacs commands In the list below, C- means "control key", M- means "meta key" (escape). For meta commands, press the meta key, then the other key.

What are vim Keybindings?

Probably one of our top feature requests. By Vim, I mean literally Vim, the command-line text editor. And by bindings, I mean keyboard commands that do specific things in the editor. Fortunately for us, CodeMirror, the code editor library we use, has a special add-on for Vim bindings.


2 Answers

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

like image 72
jcubic Avatar answered Sep 24 '22 09:09

jcubic


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

like image 33
Drew Avatar answered Sep 23 '22 09:09

Drew