Skip to content

Instantly share code, notes, and snippets.

@tlync
Created June 20, 2013 08:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlync/5821155 to your computer and use it in GitHub Desktop.
Save tlync/5821155 to your computer and use it in GitHub Desktop.
Disable keyremap4macbook's emacs keybindings in InteliJ IDEA and enable a portion of bindings.
<?xml version="1.0"?>
<root>
<appdef>
<appname>INTELIJ</appname>
<equal>com.jetbrains.intellij</equal>
</appdef>
<replacementdef>
<replacementname>EMACS_MODE_IGNORE_APPS</replacementname>
<replacementvalue>
ECLIPSE,
EMACS,
REMOTEDESKTOPCONNECTION,
TERMINAL,
VI,
VIRTUALMACHINE,
X11,
INTELIJ,
</replacementvalue>
</replacementdef>
<list>
<item>
<name>Change C-[ to Escape</name>
<item>
<name>In InteliJ</name>
<identifier>option.emacsmode_force_controlLeftbracket_intelij</identifier>
<only>INTELIJ</only>
<autogen>__KeyToKey__ KeyCode::BRACKET_LEFT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::ESCAPE</autogen>
</item>
</item>
</list>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment