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

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了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值