然后 tar zxvf ecb-2.32.tar.gz tar zxvf cedet-1.0pre4.tar.gz cd cedet-1.0pre4 make 等cedet生成完毕 在你的用户目录下面应该有一个.emacs文件(前面有个点).这个文件是emacs的配置文件.现在我们要改这个文件(如果没有就自己创建一个).添加下面一段.注意,load-file那一行的目录要自己改一下 ;; Load CEDET (load-file "你存放cedet的目录/common/cedet.el") ;;我的是(load-file "~/cedet-1.0/common/cedet.el")
;; Enabling various SEMANTIC minor modes. See semantic/INSTALL for more ideas. ;; Select one of the following:
;; * This enables the database and idle reparse engines ;;(semantic-load-enable-minimum-features)
;; * This enables some tools useful for coding, such as summary mode ;; imenu support, and the semantic navigator (semantic-load-enable-code-helpers)
;; * This enables even more coding tools such as the nascent intellisense mode ;; decoration mode, and stickyfunc mode (plus regular code helpers) ;; (semantic-load-enable-guady-code-helpers)
;; * This turns on which-func support (Plus all other code helpers) ;; (semantic-load-enable-excessive-code-helpers)
;; This turns on modes that aid in grammar writing and semantic tool ;; development. It does not enable any other features such as code ;; helpers above. ;; (semantic-load-enable-semantic-debugging-helpers)