all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tpeplt <tpeplt@gmail.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: hw <hw@adminart.net>,  help-gnu-emacs@gnu.org
Subject: Re: vterm and Meta?
Date: Thu, 03 Aug 2023 15:46:51 -0400	[thread overview]
Message-ID: <87y1irewno.fsf@gmail.com> (raw)
In-Reply-To: <CAP_d_8WUCqsVzZi2AhMqSnF9drM8OpQefrkXQxyCdKoUyB-9=A@mail.gmail.com> (Yuri Khan's message of "Wed, 2 Aug 2023 22:10:41 +0700")

Yuri Khan <yuri.v.khan@gmail.com> writes:
>
>> How do I turn this off?  I don't need this and it gets in the way.
>
> (a) sacrifice a less important key (maybe right Alt or right Super)
> (b) wait for a future release of GNOME in which that MR will be merged
> (c) migrate to Ubuntu which applies that MR as a distro patch
> (d) migrate off GNOME to a compositor that gives you direct control
> over xkb options
> (e) use Gnome Tweaks to disable that option and avoid the Settings →
> Keyboard panel

Having read this thread so far, there has been no mention of the
following.

As the ASCII table points out, ‘[’ is the control character for ESC
(escape).  Helpfully, Emacs recognizes this so it can be used as an
alternative to reaching for the <Esc> key or a poorly-located <Alt> or
<Meta> key.  It can work on both terminal and graphical Emacs.

If your hands allow this combination (the <Ctrl> key must be held down
while reaching for and pressing the ‘[’ key), then this can be a good
combination for Emacs that reduces or eliminates repetitive-stress
injuries (RSI).

Here is a keyboard remapping suggestion (bottom row of keyboard):

   [alt/meta] [ctrl] [      space      ] [ctrl] [alt/meta]

With this arrangement, the Ctrl-[ combination for the Meta key is
pressed with your left thumb (short reach) and right pinkie (short
reach).  A key combination such as C-M-v (the ‘scroll-other-window’
command) is performed by pressing and holding the <Ctrl> key while
pressing the ‘[’ key.  Then those keys are released just as would be
done when pressing the <Esc> key and the <Ctrl>-v key will complete the
key combination.

The <Alt> key can then be left to use (only) for those key combinations
where you need to repeat some key combination, such as <M-v> (the
‘scroll-down-command’).  Simply press and hold the <Alt> key while
repeatedly pressing the ‘v’ as needed.  If you don’t need to repeat a
Meta key combination, use <Ctrl>-[ instead.

The advantage of this approach is that the long thumb reach for either
<Alt> key is avoided except for rare instances, while the short thumb
reach is used for frequent instances of <Ctrl> or <Ctrl>-[.  There is
also an extra benefit for touch typists -- it is much more rare that
unused fingers need to be lifted from the home keys.

If it is available to you, the ‘gnome-tweaks’ package can be used to
remap the Alt and Ctrl keys.  Within the gnome-tweaks application, see
the "Keyboard & Mouse" settings and then select the "Additional Layout
Options".

--



  parent reply	other threads:[~2023-08-03 19:46 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 11:55 vterm and Meta? hw
2023-08-01 12:12 ` Thibaut Verron
2023-08-01 14:21   ` hw
2023-08-01 14:40     ` how to configure Meta key with wayland (was: vterm and Meta?) hw
2023-08-01 15:05     ` vterm and Meta? Spencer Baugh
2023-08-01 16:36       ` hw
2023-08-03 19:56         ` Spencer Baugh
2023-08-01 15:09     ` Thibaut Verron
2023-08-01 16:25       ` hw
2023-08-01 19:54         ` Thibaut Verron
2023-08-02  0:39           ` hw
2023-08-02  7:54             ` Thibaut Verron
2023-08-02 14:21               ` hw
2023-08-02 14:29                 ` hw
2023-08-02 15:10                   ` Yuri Khan
2023-08-03 14:02                     ` hw
2023-08-03 19:46                     ` tpeplt [this message]
2023-08-03 21:32                       ` hw
2023-08-03 22:29                         ` tpeplt
2023-08-04 20:08                           ` hw
2023-08-04 21:20                             ` PierGianLuca
2023-08-06 16:32                               ` hw
2023-08-06 17:09                                 ` PierGianLuca
2023-08-06 17:39                                 ` Yuri Khan
2023-08-04 21:42                             ` tpeplt
2023-08-06 19:41                               ` hw
2023-08-06 19:54                                 ` Emanuel Berg
2023-08-02 15:05                 ` Thibaut Verron
2023-08-03 13:50                   ` hw
2023-08-01 19:01 ` Akib Azmain Turja
2023-08-02  0:45   ` hw
2023-08-02  9:02     ` Akib Azmain Turja
2023-08-02 18:01       ` Emanuel Berg
2023-08-03 14:15       ` hw
2023-08-03 18:49         ` Akib Azmain Turja
2023-08-04 20:30           ` hw

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=87y1irewno.fsf@gmail.com \
    --to=tpeplt@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hw@adminart.net \
    --cc=yuri.v.khan@gmail.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.