mac中键盘互换cap和ctrl之后,cap一直高亮

rt
mac中键盘互换cap和ctrl之后,键盘上cap一直亮着. 有什么办法可以解决吗 ?
或者有什么便捷的办法可以只在emacs内互换按键的吗?

Press Ctrl to close it ?

mac 可以用 karabiner 改键,能做到只在 Emacs 里互换按键,但是 karabiner 配置起来可能会比较复杂

贴一个 linux 下的,不知道适用与否……

karabiner 如果要在 emacs 里改只需要加个条件判断即可,可参考下面 emacs 中用 shift 切换 emacs-rime 的写法

{
    "description": "Shift for Emacs-Rime",
    "manipulators": [
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "org\\.gnu\\.Emacs"
                    ],
                    "type": "frontmost_application_if"
                }
            ],
            "from": {
                "key_code": "left_shift",
                "modifiers": {
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "left_shift",
                    "lazy": true
                }
            ],
            "to_if_alone": [
                {
                    "key_code": "backslash",
                    "modifiers": [
                        "left_control"
                    ]
                }
            ],
            "type": "basic"
        }
    ]
},

系统的输入法那里看下,长按切换大小写,短按切换输入法

1 个赞