1:下载jdee,lib,ecb。(已安装cedet就不用再安了)
2:解压缩放入load-path目录。然后load,require。
(add-to-list 'load-path "~/.emacs.d/lisp/jdee-2.4.0.1/lisp")
(add-to-list 'load-path "~/.emacs.d/lisp/elib-1.0")
(add-to-list 'load-path "~/.emacs.d/lisp/ecb-2.40")
(require 'font-lock)
(require 'ecb)
(require 'ecb-autoloads)
(require 'jde)
(require 'semantic/analyze) (provide 'semantic-analyze) (provide 'semantic-ctxt) (provide 'semanticdb) (provide 'semanticdb-find) (provide 'semanticdb-mode) (provide 'semantic-load)
(add-to-list 'load-path "~/ecb-2.40") (require 'ecb)
重启后,依然出现 File error: Cannot open load file, semantic-什么什么。这时依葫芦画瓢,在.emacs里面添加 (provide 'semantic-什么什么) ,然后重复:重启-错误-添加.emacs,几次以后终于不再出现错误。(emacs24用此方法无效,依然出现错误,叫wrong 参数 number)。