From: Tim Johnson <tim@akwebsoft.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: MLEmacs <Help-gnu-emacs@gnu.org>
Subject: Re: Multiple keymaps for a minor mode
Date: Wed, 26 Feb 2020 10:05:40 -0900 [thread overview]
Message-ID: <e0de9e3b-9e37-cedd-7ade-c8b46fd9bf7d@akwebsoft.com> (raw)
In-Reply-To: <87tv3d365u.fsf@web.de>
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
next prev parent reply other threads:[~2020-02-26 19:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 1:58 Multiple keymaps for a minor mode Tim Johnson
2020-01-23 20:49 ` Stefan Monnier
2020-02-19 23:26 ` Tim Johnson
2020-02-21 16:16 ` Stefan Monnier
2020-02-21 18:22 ` Tim Johnson
2020-02-26 12:05 ` Michael Heerdegen
2020-02-26 19:05 ` Tim Johnson [this message]
2020-02-26 20:24 ` Drew Adams
2020-02-27 0:02 ` Tim Johnson
2020-03-04 15:47 ` Michael Heerdegen
2020-03-05 18:51 ` Tim Johnson
2020-03-05 23:54 ` Michael Heerdegen
2020-03-06 0:45 ` Tim Johnson
-- strict thread matches above, loose matches on Subject: below --
2020-01-23 18:57 Tim Johnson
2020-01-24 18:47 ` Tim Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0de9e3b-9e37-cedd-7ade-c8b46fd9bf7d@akwebsoft.com \
--to=tim@akwebsoft.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.