Skip to content

Instantly share code, notes, and snippets.

@bassu
Created August 8, 2014 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bassu/b89488d8aef681dca78c to your computer and use it in GitHub Desktop.
Save bassu/b89488d8aef681dca78c to your computer and use it in GitHub Desktop.
Command & Option swaps into Right Ctrl on Apple keyboards (Emacs style for Atom.app and such)
<?xml version="1.0"?>
<root>
<item>
<name>Atom.app</name>
<appendix>Emacs style binding from PC keyboards by Bassu</appendix>
<appdef>
<appname>ATOM</appname>
<equal>com.github.atom</equal>
</appdef>
<item>
<name>Left option -> Left command</name>
<identifier>private.left_option_to_left_command</identifier>
<only>ATOM</only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
</item>
<item>
<name>Left command -> Left option</name>
<identifier>private.left_command_to_left_option</identifier>
<only>ATOM</only>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
</item>
<item>
<name>Right option -> Ctrl</name>
<identifier>private.right_option_to_ctrl</identifier>
<only>ATOM</only>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::CONTROL_L</autogen>
</item>
<item>
<name>Right command -> Right option</name>
<identifier>private.right_command_to_right_option</identifier>
<only>ATOM</only>
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment