2012-10-17 36 views
1

我對Mac上的Emacs相當陌生,並且無法輸入像[] | {} @等符號。取而代之的是小緩衝區顯示M-5,M-6或向前跳轉(M-l)。Mac上的Emacs - 如何輸入括號,管道,@等?

我覺得我得到了我的Emacs這裏:http://emacsformacosx.com/ 和我沒有安裝該入門套件:http://kieranhealy.org/emacs-starter-kit.html (但我的帽子這個問題之前)

我知道這個答案:Unable to type braces and square braces in emacs 但我無法得到它去工作。

+1

這個問題可以幫助HTTP://計算器。 com/questions/12895950/emacs-meta-key-in-terminal –

回答

0

我用下面的 - 這將放置在Mac CMD鍵的Emacs Meta鍵,並釋放ALT鍵進行正常的Mac使用:

(if (boundp 'ns-command-modifier) 
    (setq ns-command-modifier 'meta)) 

(if (boundp 'ns-option-modifier) 
    (setq ns-option-modifier nil)) 
+0

我放入我的init.el並重新啓動,但是** Alt + 7 **仍然產生'M-7'。有什麼想法嗎? –

+0

您確定它們已生效(例如,如果您的init文件未被讀取,或者它在這些行之前包含錯誤)。嘗試用'C-h v'檢查值。 – Lindydancer