ECB in Emacs

根据官网信息Emacs Code Browser 进行ECB安装,

1:ECB download 下载最新的版本,现在是ECB 2.40

2:在.emacs中添加load-path

(add-to-list 'load-path "~/emacs/site/ecb-snap")

3: 下面是分两种情况对.emacs进行配置,你可以通过.emacs中的*message*来进行验证

If you want to load the complete ECB at (X)Emacs-loadtime 如果你想在emacs启动的时候同样加载ecb就在.emacs中加入(require 'ecb)    

If you want to load the ECB first after starting it by ecb-activate , ecb-minor-mode, ecb-byte-compile and ecb-show-help. 如果你想在当你输入ecb-active之类的命令时才加载ecb的话,就在.emacs中加入(require 'ecb-autoloads)

3:重新启动Emacs,然后输入M-x ecb-activate但是你会发现它报错说 "ECB can only be used with [1.0pre6, 1.0.9]",然后尝试着修改ecb-upgrade.el 文件,将ecb-check-requirements函数中的:

   ;; check if vedet-version is correct  
when (or (not (boundp 'cedet-version))  
        (ecb-package-version-list<  
        (ecb-package-version-str2list cedet-version)  
         ecb-required-cedet-version-min)  
        (ecb-package-version-list<  
         ecb-required-cedet-version-max  
         (ecb-package-version-str2list cedet-version)))  
(setq version-error (concat "cedet ["  
                           cedet-required-version-str-min  
                           ", "  
                           cedet-required-version-str-max  
                          "]")))  

注释掉,然后在当前目录中重新make就行了,但是你在重新make的时候会包下面的问题,然后忽略掉,重新打开emacs,输入M-x ecb-activate就可以正常运行了。



你可能感兴趣的:(ECB in Emacs)