2014-05-05 50 views
2

,我想我的键盘上的PgUp键键映射到Alt键修改在Emacs生产A-键序列,这样我就可以把它映射到一个全新的集键绑定。如何分离在Emacs ALT和Meta键

我一直在寻找我的键盘mappigs,目前我的左边Alt键重点工作既是Meta_LAlt_L修改。这是xmodmap -pke相关的输出:

keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L 

我不知道如何告诉emacs的治疗Alt键完全分开,

我已经看过了x-alt-keysym,它是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'. 

这同样适用于x-meta-keysym,它也是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'. 

从这一点意味着Alt_L应该火alt,但是,因为它是由M-的迷你吧

回答

0

的Emacs没有区分元Alt键和之间表示始终闪光meta

在你的情况当前的组合Alt键/要么表现为Alt键或作为。如果没有Meta密钥,Emacs会自动将Alt密钥视为元数据。因此,最终您的Emacs中的Alt/Meta将表现为Meta

但是,如果你有独立的按键来设置你的修饰符Alt键,Emacs会容易区分它们。

+0

为什么不把它重新映射到'hyper'呢? – Dan

+0

@丹:你是什么意思的“它”?为了记录,我的回答只是解释说Emacs不需要做任何事情;只需更改您的xmodmap配置,Emacs就会遵守它。 – Stefan

+0

对不起,意思是原创海报:如果你想要另一个修饰符,你可以将'PgUp'映射到'hyper'。 – Dan