OSX Emacs:取消绑定只是正确的alt? [英] OSX Emacs: unbind just the right alt?
问题描述
我正在使用 emacsformacosx.com ,并希望停止 Meta_R(右侧元,或右选项键)作为Emacs元键。
原因是我想要继续使用正确的选项键作为字符修饰符,以便在emacs中编写时可以输入UTF-8字符。例如,我知道我可以做一个 Cx 8 RET
并输入 em dash
有没有一些方法可以将密钥代码传递给全局 - 未设置 - $ / code>键
?还有其他我忽略的东西?
我应该清楚,我仍然希望能够使用Meta_L绑定:)
Aquamacs 有一个名为 ns-right-alternate-modifier 。如果我正在正确阅读文档,这应该是你想要的:
(setq ns-right-alternate-modifier nil)
我不确定这是否支持库存GNU Emacs。
I'm using emacsformacosx.com and would like to stop the Meta_R (right meta, or right option key) on my Apple keyboard from being an Emacs meta key.
The reason is that I want to be able to continue using the right option key as a character modifier so that I can enter UTF-8 chars when writing in emacs. I know I can do a C-x 8 RET
and type em dash
, for example, but that's a lot more work than Alt_R -
!
Is there some way of passing the keycode to global-unset-key
? Or something else I'm overlooking?
I should be clear that I still want to be able to use the Meta_L binding :)
Aquamacs has a variable called ns-right-alternate-modifier. If I am reading the documentation correctly, this should do what you want:
(setq ns-right-alternate-modifier nil)
I am unsure whether this is supported on stock GNU Emacs.
这篇关于OSX Emacs:取消绑定只是正确的alt?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!