Installing ECB in emacs 24 in ubuntu

﹥>﹥吖頭↗ 提交于 2019-12-07 03:42:10

问题


I understand from this question that CEDET is installed in emacs 24 without additional installation, so I don't need to follow those instructions here, or the CEDET part here.

I am not using the emacs starter kit, like this answer.

So, when I use elpa to install ecb, I get the following error:

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

Another answer pointed me to this repository, which has jn-utils. Can I just drop these files into my emacs.d/elpa/ecb-20131116.1319/ecb2/ directory to replace the existing jn-utils?

In general:

  1. Why is this failing?
  2. How can I fix it and install ECB as simply as possible in emacs 24?

回答1:


I just installed ecb in under a minute.

  1. From bash:

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

    (add-to-list 'load-path "~/git/ecb")
    (require 'ecb)
    

Done. ecb-activate brings up the code browser.



来源:https://stackoverflow.com/questions/20847874/installing-ecb-in-emacs-24-in-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!