问题描述
在Mac OS X中,使用 alt
键和其他一些键会产生一系列特殊符号。例如。 alt-'
结果导致æ
, alt-3
结果在£
中,等等。但是,当使用emacs时,由于 alt
是现在已映射到元
。有没有办法将 alt
映射到其他键组合?或者也许只将左侧的 alt
用作元数据,并让右侧的行为像在其他应用程序中一样?
In Mac Os X using the alt
key with some other key will produce a series of special symbols. E.g. alt-'
results in æ
, alt-3
results in £
, etc. When using emacs, however, I can no longer input these special symbols this way since alt
is now mapped to meta
. Is there a way to map alt
to some other key combo? Or maybe use the left alt
as meta only and have the right behave as it normally does in other apps?
推荐答案
除此答案中提到的字符以外,还有其他方法可以获取特殊字符,但我个人更喜欢两者世界-例如,我使用左alt / option键作为meta,并使用右alt / option键购买Apple的库存商品-例如,特殊字符,如原始海报中提到的字符:
There are additional methods to obtain special characters other than the one mentioned in this answer, but I personally prefer the best of both worlds -- i.e., I use the left alt/option key as meta, and I use the right alt/option key for stock Apple stuff -- e.g., special characters like the ones mentioned by the original poster:
(setq ns-alternate-modifier 'meta)
(setq ns-right-alternate-modifier 'none)
这篇关于如何在Mac OS X下的Emacs中使用Alt输入特殊符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!