From: Tim Johnson <tim@akwebsoft.com>
To: Drew Adams <drew.adams@oracle.com>, MLEmacs <Help-gnu-emacs@gnu.org>
Subject: Re: Creating custom key maps for stock bindings
Date: Mon, 20 Jan 2020 16:22:19 -0900 [thread overview]
Message-ID: <56063610-9401-47b5-b5dd-fa88deb5b2eb@akwebsoft.com> (raw)
In-Reply-To: <f18c121d-7839-4a4f-a856-affcfe0cba53@default>
On 1/20/20 4:10 PM, Drew Adams wrote:
>> it occurs to me that I could rebind existing
>> singleton modifier key into something like this
>> (simple examples only):
>>
>> tj-control-keymap, containing all the commands which have a control-
>> char combinations
>>
>> tj-alt-keymap, containing all the commands which have a alt-char
>> combinations
>>
>> tj-control-alt-keymap, containing all the commands which have a
>> control-alt-char combinations
>>
>> The question I have, to avoid possible unforeseen problems down the
>> road, do I need to unset all of these keys before rebinding them to
>> custom keymaps?
> A modifier key is not, by itself, a key sequence.
> So you can't bind, say, `C-' to `tj-control-keymap'.
Understood about the modifiers.
> But you can certainly bind each of the maps you mention
> to a real key sequence, which could be a single key
> (other than a modifier key).
Good.
> And in that case, no, you don't need to unset any
> existing key bindings. (Of course, if the key you
> bind one of those maps to is already bound to some
> command or another keymap then it will no longer
> be available for that original binding, if you
Cool.
> rebind it.)
>
> See, for example, the value of variable `ctl-x-map',
> which is bound to all of the key sequences that start
> with `C-x'.
I see no utility in rebinding such sequences. With which-key, pressing
c-x and waiting a couple of seconds invokes a buffer with descriptions
of all sequences starting with c-x.
I just want to list out for sequences with simpler modifiers, C-char,
C-M-char, M-char, Super-char and hyper-char.
Looks good to go.
Thanks Drew
--
Tim
tj49.com
prev parent reply other threads:[~2020-01-21 1:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-21 0:16 Creating custom key maps for stock bindings Tim Johnson
2020-01-21 1:10 ` Drew Adams
2020-01-21 1:22 ` Tim Johnson [this message]
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=56063610-9401-47b5-b5dd-fa88deb5b2eb@akwebsoft.com \
--to=tim@akwebsoft.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=drew.adams@oracle.com \
/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.