Install KeyRemap4MacBook.
Put this in your .conkerorrc
.
modifiers.C = new modifier(
function (event) { return event.metaKey; },
function (event) { event.metaKey = true; });
modifiers.M = new modifier(
function (event) { return event.ctrlKey; },
function (event) { event.ctrlKey = true; });
Put this in ~/Library/Application Support/KeyRemap4MacBook/private.xml
.
<?xml version="1.0"?>
<root>
<appdef>
<appname>CONKEROR</appname>
<equal>org.mozdev.conkeror</equal>
</appdef>
<item>
<name>Enable only in Conkeror</name>
<item>
<name>Option_L to Control_L</name>
<identifier>private.app_cokeror_option_l_to_control_l</identifier>
<only>CONKEROR</only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::CONTROL_L</autogen>
</item>
<item>
<name>Option_R to Control_R</name>
<identifier>private.app_conkeror_option_r_to_control_r</identifier>
<only>CONKEROR</only>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::CONTROL_R</autogen>
</item>
</item>
</root>
Launch KeyRemap4MacBook and check the two boxes under "Enable only in Conkeror".
You should find cmd is M-
and alt is C-
.
Making cmd into M-
was straighforward - it s the first three lines of .conkerorrc
. Making alt into C-
is not straightforward because Conkeror is not able to detect when the alt key is pressed in OS X. That is why I told Conkeror to listen for ctrl key presses, then installed KeyRemap4MacBook to pretend the alt keys are actually ctrl keys, but only for Conkeror. Natually, this means both ctrl and alt are M-
. This shouldn t be a problem unless you really want to put your ctrl keys to another use.