我把這個在我的.emacs文件:如何在每次啓動時在emacs中顯示菜單欄?
(custom-set-variables
'(gud-gdb-command-name "gdb --annotate=1")
'(large-file-warning-threshold nil)
'(menu-bar-mode t)
'(shell-dirtrack-verbose nil))
(custom-set-faces
)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
注意(menu-bar-mode t)
。當我啓動emacs時,我必須M-x menu-bar-mode
才能獲得菜單欄。我正在GNU Emacs的22.1.1(MAC-蘋果達爾文,低碳版1.6.0)
你應該考慮升級到最新的GNU Emacs的:HTTP: //emacsformacosx.com/ – phils 2010-09-25 12:38:17
我確實在Linux上得到了一個Emacs 22.2.1的菜單欄,正是你在'.emacs'中發佈的內容。因此,無論是在你的'.emacs'中還是有其他的東西來關閉菜單欄,或者它是Mac/Carbon特有的問題。 – Gilles 2010-09-25 13:58:13
我嘗試了下面的人的建議;他們沒有工作,但是當我故意在.emacs文件中加入一個錯誤,以至於它不會一直加載(我沒有關閉一個文件),那麼菜單欄就出現了。奇怪的。什麼是emacs的加載順序?是否有其他默認位置在加載系統範圍的.emacs文件? – Avery 2010-09-26 00:37:52