2012-10-15 41 views
1

我正在嘗試配置我的Meta-Key,這樣我可以在終端emacs(使用德語鍵盤)中輸入{},[]等。我曾嘗試設置我的Meta-Key,但無法使其工作。我想用Alt + 8替代{,Alt + 9替換},Alt-5替換[,Alt-6替換]。終端中的Emacs Meta-Key

(setq mac-option-modifier nil 
     mac-command-modifier 'meta 
     x-select-enable-clipboard t) 

參見: Unable to type braces and square braces in emacs

回答

3

您是否嘗試過?

(define-key global-map (kbd "M-8") "{") 
(define-key global-map (kbd "M-9") "}") 
+0

謝謝。我♥Stackoverflow;) – RParadox

+0

附加信息:我不得不將這添加到〜/ .emacs.d/init.el(Mac) – Ixx

0

對於macos azerty法語鍵盤。它是:

(define-key global-map (kbd "M-(") "{") 
(define-key global-map (kbd "M-)") "}")