Emacs切换Cmd和Ctrl键


3

有没有办法在Emacs(Aquamacs)中切换Cmd和Ctrl键?我在OS X和Ubuntu(在不同的机器上)都使用Emacs,并且在切换键盘布局时遇到了一些麻烦。干杯!

Answers:


2

固定它。我在KeyRemap4MacBook中使用了以下脚本:

<?xml version="1.0"?>
<root> 
    <appdef>
        <appname>AQUAMACS</appname>
        <equal>org.gnu.Aquamacs</equal>
    </appdef>

    <item>
        <name>Switch Ctrl and Cmd in Aquamacs</name>
        <identifier>private.appdef</identifier>
        <only>AQUAMACS</only>
    <autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::CONTROL_L</autogen>
    <autogen>--KeyToKey-- KeyCode::CONTROL_L, KeyCode::COMMAND_L</autogen>
  </item>
</root>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.