Emacs 切換 Cmd 和 Ctrl 鍵

Emacs 切換 Cmd 和 Ctrl 鍵

Emacs (Aquamacs) 中有辦法切換 Cmd 和 Ctrl 鍵嗎?我在 OS X 和 Ubuntu(在不同的機器上)中都使用 Emacs,並且在切換鍵盤佈局時遇到了一些問題。乾杯!

答案1

修復。我在 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>

相關內容