在ubuntu的emacs 24中安装ECB

时间:2013-12-30 21:30:02

标签: emacs cedet emacs-ecb elpa

我理解from this question CEDET安装在emacs 24中而无需额外安装,因此我无需遵循这些说明hereCEDET part here

我没有使用emacs入门套件like this answer

因此,当我使用elpa安装ecb时,我收到以下错误:

Compiling file /home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/jn-file-tree.el at Mon Dec 30 16:13:57 2013
Entering directory `/home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/'
jn-file-tree.el:31:1:Error: Cannot open load file: jn-tree-node

Compiling file /home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/jn-tree-node.el at Mon Dec 30 16:13:57 2013
jn-tree-node.el:32:1:Error: Cannot open load file: jn-utils

Compiling file /home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/jn-tree-view.el at Mon Dec 30 16:13:57 2013
jn-tree-view.el:31:1:Error: Cannot open load file: jn-window

Compiling file /home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/jn-utils.el at Mon Dec 30 16:13:57 2013

Compiling file /home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/jn-window.el at Mon Dec 30 16:13:57 2013
jn-window.el:44:25:Error: Invalid lambda variable (parent jn-window-container)

Compiling file /home/mittenchops/.emacs.d/elpa/ecb-20131116.1319/ecb2/test.el at Mon Dec 30 16:13:57 2013
test.el:31:1:Error: Cannot open load file: jn-tree-view

另一个答案将我指向this repository,它有jn-utils。我可以将这些文件放入我的emacs.d / elpa / ecb-20131116.1319 / ecb2 /目录中以替换现有的jn-utils吗?

一般来说:

  1. 为什么会失败?
  2. 如何在emacs 24中尽可能简单地修复它并安装ECB?

1 个答案:

答案 0 :(得分:9)

我刚刚在一分钟内安装了ecb

  1. 来自bash:

    cd ~/git && git clone https://github.com/alexott/ecb
    
  2. ~/.emacs

    (add-to-list 'load-path "~/git/ecb")
    (require 'ecb)
    
  3. 完成。 ecb-activate调出代码浏览器。