简体   繁体   English

在ubuntu的emacs 24中安装ECB

[英]Installing ECB in emacs 24 in ubuntu

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 . 从这个问题中了解到,CEDET安装在emacs 24中而无需额外安装,所以我不需要在这里遵循这些说明,也不需要在此处遵循CEDET部分

I am not using the emacs starter kit, like this answer . 我没有使用emacs入门套件, 就像这个答案一样

So, when I use elpa to install ecb, I get the following error: 所以,当我使用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

Another answer pointed me to this repository , which has jn-utils. 另一个答案向我指出了这个有jn-utils的存储库 Can I just drop these files into my emacs.d/elpa/ecb-20131116.1319/ecb2/ directory to replace the existing jn-utils? 我可以将这些文件放入我的emacs.d / elpa / ecb-20131116.1319 / ecb2 /目录中以替换现有的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? 如何在emacs 24中尽可能简单地修复它并安装ECB?

I just installed ecb in under a minute. 我刚刚在一分钟内安装了ecb

  1. From bash: 来自bash:

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

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

Done. 完成。 ecb-activate brings up the code browser. ecb-activate代码浏览器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM