2014-05-05 43 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