LoginSignup
3
3

More than 5 years have passed since last update.

SublimeTextをKeyRemap4Macbookのemacs-modeから除外する方法

Posted at

背景

便利だ便利だときかされていたテキストエディタ「SublimeText」に手を出してみた.普段はemacs使いなのでsublemacsproパッケージを導入.しかし一部のemacsコマンドがうまく動かない・・・?
原因はKeyRemap4Macbookとの競合.KeyRemap4MacbookはGUIのemacsとかはデフォルトで競合しないように設定されているらしいがSublimeTextは自分で適用外に指定しないといけないらしい.以下,その方法.

手順

KeyRemap4macbookの環境設定 → Misc & Uninstall → Open private.xmlに以下のように記述

private.xml
<?xml version="1.0"?>
<root>
    <appdef>
    <appname>SUBLIME</appname>
        <equal>com.sublimetext.2</equal>
        <equal>com.sublimetext.3</equal>
    </appdef>
    <replacementdef>
    <replacementname>
        EMACS_MODE_IGNORE_APPS
    </replacementname>
    <replacementvalue>
        SUBLIME
    </replacementvalue>
    </replacementdef>
</root>

Cange Key → Reload XMLで完了

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3