Skip to content

Instantly share code, notes, and snippets.

@mjhanninen
Created January 15, 2013 19:23
Show Gist options
  • Save mjhanninen/4541228 to your computer and use it in GitHub Desktop.
Save mjhanninen/4541228 to your computer and use it in GitHub Desktop.
Mac OS X captures C-M-d before it gets to Emacs. With the following KeyRemap4MacBook you can reclaim that keybinding and get your paredit-mode working.
<?xml version="1.0"?>
<root>
<item>
<name>My Emacs tweaks</name>
<item>
<name>Enable Control_L+Command_L+D on Emacs</name>
<identifier>private.emacs.enable_control_meta_d</identifier>
<only>EMACS</only>
<autogen>
--KeyToKey--
KeyCode::D, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::D, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment