【发布时间】:2010-09-25 12:32:42
【问题描述】:
我把它放在我的 .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-apple-darwin,Carbon 版本 1.6.0)
【问题讨论】:
-
您应该考虑升级到最新的 GNU Emacs:emacsformacosx.com
-
我确实在 Linux 上获得了一个带有 Emacs 22.2.1 的菜单栏,这正是您在
.emacs中发布的内容。因此,要么你的.emacs中有其他东西会关闭菜单栏,要么是 Mac/Carbon 特有的问题。 -
我尝试了以下人们的建议;他们没有工作,但是当我故意在 .emacs 文件中放置一个错误以便它不会一直加载(我没有关闭括号)时,菜单栏出现了。奇怪的。 emacs的加载顺序是什么?是否有其他默认位置可以加载系统范围的 .emacs 文件?
-
运行
emacs -q表现出同样的行为。 -
default.el(如果存在,通常位于 site-lisp 目录中)在 .emacs 之后加载,但运行 emacs -q 应该会停止。很可能它是特定于 (mac-apple-darwin, Carbon 版本 1.6.0) 构建的其他东西。