问题描述
使用TTY emacs的国际键盘可以很好地输入字符:
alt-e + a输入á$ b $问题是,在Cocoa Emacs中,这是一个可能的问题。同样不成立。这些键被解释为emacs命令。
我试图在全局解除这些键,甚至未绑定,他们不输入国际重音字符所需的正确的转义字符。 p>
如何回到Cocoa Emacs的TTY行为?
解决方案我喜欢在OSX上拥有最好的两个世界,所以我设置左侧的alt /选项键为META,右侧的alt / option键为默认的原生OSX设置。这里是我常用的Emacs修饰键的设置:
(setq ns-alternate- 'meta)
(setq ns-right-alternate-modifier'none)
(setq ns-command-modifier'super)
b $ b(setq ns-function-modifier'control)
(setq ns-right-control-modifier'left)
c $ c>
Using an international keyboard with TTY emacs works fine for entering characters:
alt-e + a enters á
alt-i + a enters â
etc
The problem is that in Cocoa Emacs that same doesn't hold true. These keys get interpreted as emacs commands.
I tried to unbind these keys globally, even unbinded they don't enter the correct escape character needed for international accented characters.
How to I get back to the TTY behaviour in Cocoa Emacs?
解决方案 I like to have the best of both worlds on OSX, so I set the left alt/option key to META and the right alt/option key to the default native OSX settings. Here are my settings for the commonly used Emacs modifier keys:
(setq ns-alternate-modifier 'meta)
(setq ns-right-alternate-modifier 'none)
(setq ns-command-modifier 'super)
(setq ns-right-command-modifier 'left)
(setq ns-control-modifier 'control)
(setq ns-right-control-modifier 'left)
(setq ns-function-modifier 'none)
这篇关于Cocoa中的选项键Emacs不输入重音字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!