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

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

Re: Remapping keys and creating my own keymap \\ too complicated\\


From: Tatsu Takamaro
Subject: Re: Remapping keys and creating my own keymap \\ too complicated\\
Date: Sun, 8 Dec 2024 19:16:02 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

I did as you said and just added some commands to an .emacs file. And everything worked untill I tried to change the C-x binding. Here is my exact code:

(keymap-global-unset "C-x")
(keymap-global-set "C-x" #'kill-region)
(keymap-set global-map "<apps>" 'ctl-x-map)

It seems logical, but it doesn't work properly. The Ctrl + x works just fine and cuts the selected fragment. Pressing Ctrl + x also doesn't have an effect as a C-x prefix (for example, keys C-x-s don't work to save). But then there is an unexpected behaviour. Pressing the Menu button (<apps>) doesn't act as C-x, and I can't use it to run commands that start with C-x. For example, I can't do save-buffer by pressing <apps>-s. Why is it so? What am I missing?


пт, 06.12.2024 16:18, Robert Pluim пишет:
On Fri, 06 Dec 2024 13:38:17 +0300, Jean Louis<bugs@gnu.support>  said:
     Jean> That page was generated by neglectful artificial intelligence.

I suspected as much, but didnʼt want to spend any effort on confirming
it. 😀

Robert


reply via email to

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