Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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