首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为GNU Emacs 23.2.1配置CEDET

为GNU Emacs 23.2.1配置CEDET
EN

Stack Overflow用户
提问于 2010-08-10 08:49:28
回答 1查看 5.3K关注 0票数 12

我最近为OS X 10.6构建并安装了Emacs 23.2.1,它显然预装了CEDET 1.0pre7,但我的旧CEDET配置失败(例如,(semantic-load-excessive-code-helpers)甚至(semantic-load-code-helpers)是未定义的),即使在我的.emacs中添加了以下内容:

代码语言:javascript
复制
(require 'cedet)
(semantic-mode 1)
(require 'semantic)

我遗漏了什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-08-10 10:57:30

Emacs集成的CEDET配置不同。这是如何适应我的旧配置,虽然没有用附加的CEDET测试:

代码语言:javascript
复制
(setq integrated-cedet-p (and (>= emacs-major-version 23)
                              (>= emacs-minor-version 2)))

(unless integrated-cedet-p
  (progn
    (setq cedet-lib "/path/foo")
    (setq cedet-info-dir "/path/bar")))

(if (boundp 'cedet-info-dir)
    (add-to-list 'Info-default-directory-list cedet-info-dir))

(if (boundp 'cedet-lib)
    (load-file cedet-lib))

(semantic-mode 1)

(global-ede-mode t)

(if (boundp 'semantic-load-enable-excessive-code-helpers)
    ; Add-on CEDET
    (progn
      (semantic-load-enable-excessive-code-helpers)
      ; TODO: should already be enabled by previous line
      (global-semantic-idle-completions-mode)
      (global-semantic-tag-folding-mode))
   ; Integrated CEDET
  (setq semantic-default-submodes
        '(global-semanticdb-minor-mode
          global-semantic-idle-scheduler-mode
          global-semantic-idle-summary-mode
          global-semantic-idle-completions-mode
          global-semantic-decoration-mode
          global-semantic-highlight-func-mode
          global-semantic-stickyfunc-mode)))

(if (boundp 'semantic-ia) (require 'semantic-ia))
(if (boundp 'semantic-gcc) (require 'semantic-gcc))
票数 17
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3445248

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档