您的位置:首页 > 其它

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理之 安装 ecb

2012-05-05 16:21 447 查看
1. 下载 ecb 地址为:http://sourceforge.net/projects/ecb/files/

2. 解压 ecb 到 ~/.emacs.d/plugins/ 目录下

3. 配置 cedet,emacs 23.4 自带了 cedet 只需要配置就可以使用了。

;;cedet
(require 'cedet)
(global-ede-mode t)

;;;;  Helper tools.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ecb-options-version "2.40")
'(semantic-default-submodes (quote (global-semantic-decoration-mode global-semantic-idle-completions-mode global-semantic-idle-scheduler-mode global-semanticdb-minor-mode global-semantic-idle-summary-mode global-semantic-mru-bookmark-mode)))
'(semantic-idle-scheduler-idle-time 3))
(semantic-mode)

;; smart complitions
(require 'semantic/ia)
(setq-mode-local c-mode semanticdb-find-default-throttle
'(project unloaded system recursive))
(setq-mode-local c++-mode semanticdb-find-default-throttle
'(project unloaded system recursive))

;;ecb
(require 'semantic/analyze)
(provide 'semantic-analyze)
(provide 'semantic-ctxt)
(provide 'semanticdb)
(provide 'semanticdb-find)
(provide 'semanticdb-mode)
(provide 'semantic-load)


4. 配置 ecb

(add-to-list 'load-path "~/.emacs.d/plugins/ecb-2.40")
(require 'ecb)
;;自动启动ecb,并且不显示每日提示
(setq ecb-auto-activate t ecb-tip-of-the-day nil)


重启,就可以使用 ecb了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: