[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commands with more than one keybinding in menus
From: |
Michael Heerdegen |
Subject: |
Re: Commands with more than one keybinding in menus |
Date: |
Tue, 13 Aug 2013 15:48:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Thorsten Jolitz <tjolitz@gmail.com> writes:
> Hi List,
>
> if a command that should appear in the menu for a mode has more than one
> keybinding - how do I specify which binding shows up in the menu?
>
> As an example, say command `demote' of 'my-mode' is bind to 'C-c C-c >'
> and 'C-M-<right>', and I want the latter binding to appear in the menu
> entry of 'my-mode'. Is that a matter of definition order - the binding
> last defined in the mode's library is shown - or is there a way to
> specify the displayed binding in the menu-map definition?
Dunno about the order, but presumably you shouldn't rely on any rule.
You can specify a key binding when defining the menu explicitly - see
(info "(elisp) Extended Menu Items")
Michael.
- Commands with more than one keybinding in menus, Thorsten Jolitz, 2013/08/13
- Re: Commands with more than one keybinding in menus,
Michael Heerdegen <=
- Re: Commands with more than one keybinding in menus, Stefan Monnier, 2013/08/13
- Re: Commands with more than one keybinding in menus, Thorsten Jolitz, 2013/08/13
- Re: Commands with more than one keybinding in menus, Michael Heerdegen, 2013/08/14
- Re: Commands with more than one keybinding in menus, Thorsten Jolitz, 2013/08/14
- Message not available
- Re: Commands with more than one keybinding in menus, Stefan Monnier, 2013/08/14
- Re: Commands with more than one keybinding in menus, Thorsten Jolitz, 2013/08/14
- Message not available
- Re: Commands with more than one keybinding in menus, Stefan Monnier, 2013/08/14
- Re: Commands with more than one keybinding in menus, Thorsten Jolitz, 2013/08/14
Message not available