uuntu 11.10 emacs-23.4を使って、erlang整理のインストールecbを開発します。

3618 ワード

1.ダウンロードecbアドレスは:http://sourceforge.net/projects/ecb/files/
2.解凍ecbから~/.emmacs.d/plugins/カタログ下
3.cedetを配置し、emaacs 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が使えます。