From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: key function to change
Date: Tue, 22 Oct 2024 21:55:01 -0400 [thread overview]
Message-ID: <jwv1q0737xd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: trinity-00b722ef-1528-4c8a-b77a-029a2414c8c1-1729611579609@3c-app-webde-bap15
> As default the menu key on the right produces the M-x prefix, but I
> don't need it that often, so I would like to reduce this to M only
> (e.g. for M-f, M-d, M-w, M > etc.).
The "best" way to do that is outside of Emacs (so it will affect all
applications rather than only Emacs), so as to make that key behave like
the same modifier as the key left of the space bar.
The way to do that has changed over the years, so I don't know how it
is now. I used to do this with `xmodmap` but I think nowadays you'll
need something different like `xkbset` or under Wayland probably yet
something else.
If you want that change to affect only Emacs, you can try something like
(global-set-key [menu] "\e")
[ Which may need to be tweaked depending on the exact even that key
sends. ]
but it probably won't work quite right (even after tweaking) because it
will really behave like an ESC key, so you probably won't be allowed to
hit that key *together* with `f` to get `M-f`.
Stefan
prev parent reply other threads:[~2024-10-23 1:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 15:39 key function to change Andreas Diener via Users list for the GNU Emacs text editor
2024-10-22 17:51 ` Leo Butler
2024-10-23 1:55 ` Stefan Monnier via Users list for the GNU Emacs text editor [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=jwv1q0737xd.fsf-monnier+emacs@gnu.org \
--to=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.