[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: key function to change
From: |
Stefan Monnier |
Subject: |
Re: key function to change |
Date: |
Tue, 22 Oct 2024 21:55:01 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> 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