问题描述
我想将键盘上的键映射到修饰符,以生成 A -
键序列在Emacs中,我可以将其映射到一整套新的键绑定。
我正在看着我的键盘mappigs,目前我的左边键既可以用作
和修饰符。这是 xmodmap -pke
的相关输出:
keycode 64 =我不知道如何告诉emacs来治疗和。
在您的情况下,您当前的组合 / 或者显示为或作为。如果没有键,Emacs自动将键视为。因此,最终,您的组合 / 将在Emacs中表现为。
但是,如果您为和使用单独的键设置修饰符,Emacs将很容易区分它们。
I would like to map a key on my keyboard to modifier to produce A-
key sequence in Emacs, so that I can map it to a whole new set of key bindings.
I was looking at my keyboard mappigs and currently my left key works as both
and modifier. This is the relevant output of xmodmap -pke
:
keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L
I'm not sure how to tell emacs to treat and totally separately,
I have looked at the x-alt-keysym
and it is nil
Which keys Emacs uses for the alt modifier.
This should be one of the symbols `alt', `hyper', `meta', `super'.
For example, `alt' means use the Alt_L and Alt_R keysyms. The default
is nil, which is the same as `alt'.
The same is for x-meta-keysym
and it is also nil
:
Which keys Emacs uses for the meta modifier.
This should be one of the symbols `alt', `hyper', `meta', `super'.
For example, `meta' means use the Meta_L and Meta_R keysyms. The
default is nil, which is the same as `meta'.
From this it implies that Alt_L
should fire alt
, however it always fires meta
as it is indicated by the M-
in the minibar
解决方案 Emacs does distinguish between and .
In your case your current combined / either appears as an or as a . If there's no key, Emacs automatically treats the key as a . So in the end your combined / will behave as a in Emacs.
But if you set your modifiers with separate keys for and , Emacs will readily distinguish them.
这篇关于如何在emacs中分离alt和meta键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!