From: Jean Louis <bugs@gnu.support>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: To get list of key bindings sorted by modifier
Date: Mon, 7 Dec 2020 22:32:47 +0300 [thread overview]
Message-ID: <X86DX28YYkJ119zZ@protected.rcdrun.com> (raw)
In-Reply-To: <83wnxt8vv7.fsf@gnu.org>
* Eli Zaretskii <eliz@gnu.org> [2020-12-07 18:44]:
> > Date: Mon, 7 Dec 2020 09:52:41 +0300
> > From: Jean Louis <bugs@gnu.support>
> > Cc: help-gnu-emacs@gnu.org
> >
> > But I have 2 Alt keys where the right one I never use.
> >
> > How can I make the right tab distinguished new modifier key?
>
> That is specific to your keyboard software and driver, so I don't know
> the answer.
This is just GNU Hyperbola/Linux-libre and Thinkpad notebooks. I have
seen online people switch right Alt to become Ctrl2 but I would like
right Alt to become Alt as now is Meta. Tried with xmodmap but it is
still meta in Emacs.
From manual:
(info "(emacs) Modifier Keys")
,----
| Even if your keyboard lacks these additional modifier keys, you can
| enter it using ‘C-x @’: ‘C-x @ h’ adds the Hyper flag to the next
| character, ‘C-x @ s’ adds the Super flag, and ‘C-x @ a’ adds the Alt
| flag. For instance, ‘C-x @ h C-a’ is a way to enter ‘Hyper-Control-a’.
| (Unfortunately, there is no way to add two modifiers by using ‘C-x @’
| twice for the same character, because the first one goes to work on the
| ‘C-x’.)
`----
But I would not like pressing 3 keys C, x and @ when I already have
unused Alt on right side of the keyboard and I also have Menu which
does sometimes Emacs stuff, sometimes Window Manager stuff depending
of the window manager. By all means I wish to shorten the keys that I
press.
Caps Lock - to be modifier
Right Alt - could be Alt
Right Control - could be Hyper
Right Menu key - could be something as well
That would greatly enhance my work.
I have now made Caps Lock to by my Hyper:
~/.Xmodmap
clear lock
clear control
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
keycode 37 = Hyper_L
keycode 66 = Control_L
add control = Control_L Control_R
add mod1 = Alt_L Alt_R Meta_L
add mod2 = Num_Lock
add mod3 = Hyper_L
add mod4 = Super_L Super_R
add mod5 = Mode_switch ISO_Level3_Shift
This may not be alright all. For right now it works. As C-h k with
CapsLock-m for example gives me: H-m is undefined. Hyper key is there
that is great. CapsLock I never use in its own definition. It makes
sense to use Caps Lock on a real physical type writer which is heavy
and difficult to keep in Caps Lock position by using hands. On
computer is not necessary. Key is more useful to become Hyper key.
I still need to understand how to make right Alt behave as Alt and not
Meta.
prev parent reply other threads:[~2020-12-07 19:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 11:43 To get list of key bindings sorted by modifier Jean Louis
2020-12-05 12:27 ` Skip Montanaro
2020-12-05 13:00 ` Jean Louis
2020-12-05 21:12 ` TRS-80
2020-12-06 5:05 ` Jean Louis
2020-12-06 5:53 ` Eli Zaretskii
2020-12-06 9:58 ` Jean Louis
2020-12-06 10:11 ` Eli Zaretskii
2020-12-07 6:52 ` Jean Louis
2020-12-07 15:43 ` Eli Zaretskii
2020-12-07 19:32 ` Jean Louis [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=X86DX28YYkJ119zZ@protected.rcdrun.com \
--to=bugs@gnu.support \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).