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: Wed, 4 Dec 2024 19:37:11 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

Thank you! OK, so once again, am I right that if I just want to set my own key bindings (not changing all of them, but just some), then it's better to just use keymap-global-set (anticipated by keymap-global-unset)? And I may don't care about touching and changing the default settings?

And can I be sure that everything is all right when I change the global keymap, won't I be necessarily have to reinstall Emacs everytime I do something wrong (if I do...) with the global key assignment?

Is it just a matter of the ".emacs" file, and all wiil turn right if I just zeroize the ".emacs" settings?

And if so, I can just have my own settings inside of the ".emacs" file, and if I go to another computer I can just bring my ".emacs" file with me and it will work the way I want? And so it means I don't need a separate keymap file, do I?

ср, 04.12.2024 19:06, Robert Pluim пишет:
On Wed, 4 Dec 2024 18:55:00 +0300, Tatsu Takamaro<tatsu.takamaro@gmail.com>  
said:
     Tatsu> So, the concrete questions that bother me are as they were in the
     Tatsu> original question. Like 1) Is my idea to create an own keymap the 
best
     Tatsu> (or is it OK just to change the defaults)?, 2) What about the
     Tatsu> differenced in the approach and the syntax matters, 3) What is the
     Tatsu> correct way of creating my keymap. Sould it be inside of the 
".emacs"
     Tatsu> file or a separate one? What commands should I use?

If you want to change global bindings, you can do that in the global
map with eg `global-set-key' or `keymap-global-set' in more recent
emacs. Iʼd use the latter, if possible, as the syntax of key sequences
it uses is easier to write.

Remember: your .emacs is yours, and changing defaults to suit you
(including default bindings) is encouraged.

Robert


reply via email to

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