我可以绑定一些东西到ALT(Meta) [英] Can I bind something to ALT (Meta)

查看:173
本文介绍了我可以绑定一些东西到ALT(Meta)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有:

(global-set-key '[f11] 'menu-bar-mode)

如何将其绑定到左边 ALT Meta ,将会有冲突使用alt作为元吗?

How can I bind it to left ALT / Meta and will there be conflicts of using alt as meta?

推荐答案

您不能将功能绑定到修饰符键,因为当自动按下修饰符键时,Emacs不会接收任何输入(或者更准确地说,当没有非 -modifier键也被按下)。

You can't bind a function to a modifier key, because Emacs does not receive any input when a modifier key is pressed on its own (or more accurately, when one or more modifier keys are pressed without a non-modifier key also being pressed).

nb您的操作系统确定哪些键是修饰符,而不是Emacs。

n.b. Your operating system determines which keys are modifiers, not Emacs.

您可能会将您的操作系统使用左Alt键作为元修改器,而是发送一些序列,然后您可以配置Emacs来识别。在这种情况下,您将要配置一些其他键作为Meta修饰符,除非您只使用右Alt才可以使用。

You could probably tell your OS not to use the left Alt key as the Meta modifier and to instead send some sequence which you could then configure Emacs to recognise. You would want to configure some other key as the Meta modifier in that case of course, unless you are happy using right Alt exclusively.

我不确定你是如何 d这样做,但是在类似Unix的操作系统中,读取 xmodmap 通常是第一个调用端口。

I'm unsure precisely how you'd do that, but in a Unix-like OS reading up on xmodmap is typically the first port of call.

这篇关于我可以绑定一些东西到ALT(Meta)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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