help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key function to change


From: Leo Butler
Subject: Re: key function to change
Date: Tue, 22 Oct 2024 17:51:26 +0000
User-agent: Gnus/5.13 (Gnus v5.13)

Hello Andreas,
I am a bit confused about which key you want to bind.

Could you do the following in emacs:

M-x shell RET (open a *shell* buffer)

Type

xev RET

Press and let go of the key that you want to re-bind. Copy the relevant
output into the body of an email and send it to us. The output should
look like (I press and let go of the right-alt, then left-alt keys):

KeyPress event, serial 34, synthetic NO, window 0x2a00001,
    root 0x50a, subw 0x0, time 110399765, (-539,815), root:(265,835),
    state 0x0, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2a00001,
    root 0x50a, subw 0x0, time 110399854, (-539,815), root:(265,835),
    state 0x8, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x2a00001,
    root 0x50a, subw 0x0, time 110404181, (-539,815), root:(265,835),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2a00001,
    root 0x50a, subw 0x0, time 110404261, (-539,815), root:(265,835),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Best regards,
Leo


On Tue, Oct 22 2024, Andreas Diener via Users list for the GNU Emacs text 
editor <help-gnu-emacs@gnu.org> wrote:

>    Dear Madam or Sir,
>
>    first: I am from Germany and only stumbling through the english
>    language, so please excuse this kind of literature ...
>
>    Some (quite long) time ago one of you guys helped me out, and I hope I
>    can get a hint from you again.
>
>    I am on Linux (Debian 12), Emacs from the repository (28.2), and I am
>    using a standard keyboard without num block, but a menu key on the
>    right corner next to the Ctrl key. Since the Alt key on the left to the
>    Space bar is the only Alt/Meta key it is quite "interesting" which
>    grips I have to manage using the key bindings with M/Alt with the left
>    hand.
>    For the Ctrl key I use the hand which is not busy with letter keys,
>    e.g. for C-x s I take the rigth Ctrl key and type the x and s with the
>    left hand, and I think that would be nice for the M/Alt key, too.
>
>    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.).
>    Searching the web about this there are some interesting solutions, but
>    I didn't find a solution for my idea, additional there seem to be
>    different ways for Emacs on different systems like Windows, MacOS and
>    Linux. And because I am not into writing software and have no idea
>    about lisp programming, I am a bit helpless here.
>
>    An entry in my .emacs file, which I tryed, does not work:
>    (global-set-key [menu] 'meta)
>
>    Best regards,
>    Andreas Diener

-- 
---
Best regards,
Dr Butler


reply via email to

[Prev in Thread] Current Thread [Next in Thread]