|
From: | Tim Johnson |
Subject: | Re: Multiple keymaps for a minor mode |
Date: | Wed, 26 Feb 2020 10:05:40 -0900 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 2/26/20 3:05 AM, Michael Heerdegen wrote:
Tim Johnson <tim@akwebsoft.com> writes:(add-to-list 'emulation-mode-map-alists `((tj-minor-mode . ,tj-mode-map))) I wish to separate `tj-mode-map into a number of individual mode maps that are configured by category. [...]An alternative to what already has been discussed could be to use `make-composed-keymap' to combine the split maps to the minor mode map. The result inherits changes of its parts
Thanks Michael. I'm glad to hear about make-composed-keymap. I will research its usage, time permitting.I actually scrapped the idea of multiple minor modes by category. It seemed as if I were unnecessarily populating my environment with modes.
My original interest was prompted by wishing to have "help" on keybindings by category. My solution has been to set up a menuing scheme using x-popup-menu. I would note, as others would, that tmm-prompt could be an alternative if I ever had to use emacs in terminal mode - which I do not implement at this time.
The advantage is that a binding and command can now appear in more than one category. The disadvantage is that if I were to change a keybinding, I would also have to change at least one and maybe more menu entries.
thanks again -- Tim tj49.com
[Prev in Thread] | Current Thread | [Next in Thread] |