OSX Emacs:解除绑定正确的 alt? [英] OSX Emacs: unbind just the right alt?

查看:18
本文介绍了OSX Emacs:解除绑定正确的 alt?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 emacsformacosx.com 并希望 停止 Meta_R(正确的元,或正确的选项键)在我的 Apple 键盘上成为 Emacs 元键.

原因是我希望能够继续使用正确的选项键作为字符修饰符,以便在 emacs 中编写时可以输入 UTF-8 字符.例如,我知道我可以执行 Cx 8 RET 并键入 em dash,但这比 Alt_R - 要多得多!>

是否有某种方法可以将密钥代码传递给 global-unset-key?或者我忽略的其他东西?

我应该清楚我仍然希望能够使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆