Skip to content
LeoUfimtsev edited this page Apr 12, 2015 · 8 revisions

Welcome to the guide-key wiki!

**Naming intermediate prefix menus**

Sometimes you have a deeper menu structure, and you would like to name the intermediate ‘command groups’. This can be done via `define-prefix-command`.

For example:

(define-prefix-command ‘message-menu) (bind-key (kbd “<f2> t”) ‘message-menu) (bind-key (kbd “<f2> t 1”) (defun my/message1 () (interactive) (message “Messag1”))) (bind-key (kbd “<f2> t 2”) (defun my/message2 () (interactive) (message “Messag2”)))

Source: http://www.emacswiki.org/emacs/PrefixKey

Clone this wiki locally