Option key in Cocoa Emacs not entering accented characters

时光怂恿深爱的人放手 提交于 2019-12-23 03:00:13

问题


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?


回答1:


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)


来源:https://stackoverflow.com/questions/34929773/option-key-in-cocoa-emacs-not-entering-accented-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!