Skip to content

Instantly share code, notes, and snippets.

@iowillhoit
Last active May 9, 2016 17:08
Show Gist options
  • Save iowillhoit/e3d099301d00363644e636414d4a6cb7 to your computer and use it in GitHub Desktop.
Save iowillhoit/e3d099301d00363644e636414d4a6cb7 to your computer and use it in GitHub Desktop.
Map right option key to delete word
  • Install Karabiner
  • Change the contents of ~/Library/Application Support/Karabiner/private.xml to:
<?xml version="1.0"?>
<root>
     <item>
        <name>Delete Word</name>
        <identifier>Delete Word</identifier>
        <autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::DELETE, ModifierFlag::OPTION_L</autogen>
     </item>
</root>
  • Click Reload XML in Karabiner
  • Check the checkbox next to Delete Word at the top
  • The right alt key will now delete to the beggining of the word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment