[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commands with more than one keybinding in menus
From: |
Thorsten Jolitz |
Subject: |
Re: Commands with more than one keybinding in menus |
Date: |
Tue, 13 Aug 2013 16:52:45 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> 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")
>
thats what I needed, must have overlooked the
,----------------------------------------------------------------------
| `:key-sequence KEY-SEQUENCE'
| This property specifies which key sequence is likely to be bound
| to the same command invoked by this menu item.
`----------------------------------------------------------------------
property when searching the manual.
Thanks.
--
cheers,
Thorsten
- Commands with more than one keybinding in menus, Thorsten Jolitz, 2013/08/13
- 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