我正在为 UBUNTU 上的 C++ 项目设置 EMACS。到目前为止我安装成功
- 欧洲央行
- CEDET - 我得到了代码完成和其他功能。
- 颜色主题
我在使用 EDE 包时遇到问题。“项目”菜单未显示。我已将(global-ede-mode t)添加到.emacs文件中,但没有运气。我需要单独安装 EDE 包还是它附带 CEDET?我该如何解决这个问题并拥有项目菜单?
我的第二个问题是语义无法找到系统包含文件。它是说找不到头文件,因此代码完成不适用于标准库。我添加了(require'semantic-gcc)但没有运气。我通过添加(semantic-add-system-include "/usr/include/c++/4.3" 'c++-mode)解决了这个问题,但我认为这不是正确的方法。我怎样才能获得(require'semantic-gcc)作品?
这是 .emacs 文件。
(load-file "~/emacs/cedet/common/cedet.el")
(load-file "~/emacs/cedet/ede/ede.el")
(semantic-load-enable-minimum-features)
(semantic-load-enable-code-helpers)
(semantic-load-enable-gaudy-code-helpers)
(semantic-load-enable-excessive-code-helpers)
(semantic-load-enable-semantic-debugging-helpers)
(require 'semantic-ia)
(require 'semantic-gcc)
(add-to-list 'load-path "/home/nkn/emacs/ecb-2.40")
(require 'ecb)
(require 'ecb-autoloads)
(setq ecb-tip-of-the-day nil)
(ecb-activate)
;; custom key bindings for smart completion
(global-set-key "\C-x\C-m" 'semantic-ia-complete-symbol-menu)
(load "/home/nkn/emacs/color-theme-6.6.0/color-theme.el")
(color-theme-initialize)
(setq color-theme-is-global t)
(color-theme-classic)
(require 'ede)
(setq global-ede-mode t)
(semantic-add-system-include "/usr/include/c++/4.3" 'c++-mode)
我已经查看了Alex关于该主题的文章,但找不到与我的问题相关的任何信息。
任何帮助,将不胜感激。
编辑
CEDET 版本:cedet-1.0pre6