manandearth
manandearth

Reputation: 824

describe binding filtering in emacs

Is there a way to filter the list of available bindings (C-h b), so it will not show all the possible bindings but just the relevant ones for the used mode? For example on org-mode, I get all the general C-x list plus all the bindings of the modes that have general key bindings plus all the major mode bindings, followed by all the org mode ones, followed by global bindings... 1369 lines in total... I'm using this view for learning my way around, perhaps there is a way to filter so as to find my way around.

Upvotes: 2

Views: 208

Answers (3)

Andreas Röhler
Andreas Röhler

Reputation: 4804

After C-h b switch into Help-buffer and call M-xoccurRETorgRET which will display all lines containing "org".

Upvotes: 0

Drew
Drew

Reputation: 30708

  1. C-h m shows the doc for the current major mode, as well as currently enabled minor modes.

    Often C-h m lists some of the more important local key bindings, that is, some of the bindings made for the current major mode. But not always, and typically it does not list all of the local bindings.

  2. If you use library help-fns+.el then you can use command describe-keymap to list all of the local key bindings:

    M-: (describe-keymap (current-local-map)) 
    

    If you know the name of the local keymap variable (e.g. emacs-lisp-mode) then you can invoke describe-keymap interactively using C-h M-k, providing the map name at the prompt.

  3. If you use Icicles then you can see all of the currently available key bindings using S-TAB (key completion). By default, the local bindings (i.e, those for the current major mode) are shown first, and are highlighted specially. (You can use C-, to sort the candidate bindings in other ways (by key name, prefix keys first; by command name).

Upvotes: 1

sds
sds

Reputation: 60064

I think you are looking for C-h m which runs the command describe-mode.

You will find more goodies in C-h C-h which runs the command help-for-help.

Upvotes: 1

Related Questions