|
|
发表于 2005-8-18 14:42:15
|
显示全部楼层
在ecb的installation页有说明啊
记得应该先安装cedet 1.0,
1) Copy source files somewhere.
2) Byte compile
a) make
-OR-
b) make EMACS=<your favorite emacs>
You might also have trouble with makeinfo. If you need to upgrade
makeinfo, you can do this:
c) make MAKEINFO=/usr/local/bin/makeinfo
Note: For speedbar, you may also need to byte-compile the version
of INFO and RMAIL that come with your version of emacs.
d) make MAKEINFO=echo
To skip making the doc.
3) Install load hooks into your .emacs file.
;; Configuration variables here:
(setq semantic-load-turn-useful-things-on t)
;; Load CEDET
(load-file "~/cedet-VERSION/common/cedet.el")
然后安装ecb
# Add the new ECB-directory to your load-path variable.
You MUST add the ECB-install-directory to the load-path either by changing the load-path variable directly in your .emacs or site-lisp/site-start.el or by working with a file subdirs.el2.
So for example the needed entry for your .emacs-file could be:
(add-to-list 'load-path
"/path/to/your/ecb/installation/directory")
# Load ECB by adding code to your .emacs:
If you want to load the complete ECB at (X)Emacs-loadtime (Advantage: All ECB-options available after loading ECB. Disadvantage: Increasing loadtime3):
(require 'ecb)
If you want to load the ECB first after starting it by ecb-activate (Advantage: Fast loading4. Disadvantage: ECB- and semantic-options first available after starting ECB):
(require 'ecb-autoloads)
This loads all available autoloads of ECB, e.g. ecb-activate, ecb-minor-mode, ecb-byte-compile and ecb-show-help. |
|