How can I change the mappings of controls / options / command line in IntelliJ Emacs keyboard layout?

GNU Emacs on Mac OS X by default uses the control key as CTRL and the command key as META. This drives me crazy because my MacBook Pro contains only one control on the left, while I'm used to having a control key on both sides of the keyboard .

With my GNU Emacs installation, I was able to change the variables mac-control-modifier, mac-command-modifierand mac-option-modifierso that the command acted as a CTRL option and acts like META.

How can I do the same in IntelliJ IDEA? It's easy to select "Emacs" as the key card, but I see no way to do a similar reassignment of CTRL and META. I know that I can redirect these keys around the world in the OS, but I do not want to do this. I also know that I can do every action and individually modify them, but this seems like a bad decision.

+3
source share
1 answer

This may not be the easiest solution, but you can open the resources.jar file (/Applications/IntelliJIdea.app/lib/resources.jar on MacOS), find the Keymap_Emacs.xml file (in the ideas directory), copy and modify it.

IntelliJ (~/Library/Preferences/IntelliJIdea90/ MacOS).

, , .

+9

Source: https://habr.com/ru/post/1760886/


All Articles