【发布时间】:2012-01-25 13:38:29
【问题描述】:
这个网站展示了如何使用注册表。 http://www.emacswiki.org/emacs/JonasOster
【问题讨论】:
-
根据该页面,Windows 上的 Emacs 将 Application 键视为“超级”。
标签: windows emacs autohotkey
这个网站展示了如何使用注册表。 http://www.emacswiki.org/emacs/JonasOster
【问题讨论】:
标签: windows emacs autohotkey
Another page on emacswiki 在 AutoHotKey 中建议:
#IfWinActive emacs ; if in emacs
+Capslock::Capslock ; make shift+Caps-Lock the Caps Lock toggle
Capslock::Control ; make Caps Lock the control button
#IfWinActive ; end if in emacs
【讨论】:
我不知道 Super 做什么,但我使用这个脚本将 CapsLock 映射到 Emacs:
CapsLock::
ifwinactive ahk_class Emacs
send {f16}
return
当 emacs 处于活动状态并按下大写锁定时,这会将 f16 发送到 emacs。我的键盘没有 f16 键,这就是我选择它的原因,在 emacs 中我将它绑定到某些功能:
(global-set-key (kbd "<f16>") 'some-function)
请注意,当 emacs 不活动时,AHK 脚本不会对大写锁定进行任何操作。我更喜欢这样,因为我认为 capslock 没用而且我只是不小心按下它,所以如果它什么都不做也没关系。如果 ifwinactive 产生错误,您可能想用它做其他事情。
【讨论】: