我可以绑定一些东西到ALT(Meta)

编程入门 行业动态 更新时间:2024-10-28 03:29:42
本文介绍了我可以绑定一些东西到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)

本文发布于:2023-11-04 21:47:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559097.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:绑定   东西   Meta   ALT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!