Emacs java-mode:malabar,jdee还是eclim? [英] Emacs java-mode: malabar, jdee, or eclim?

查看:125
本文介绍了Emacs java-mode:malabar,jdee还是eclim?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用emacs进行java编码,但是我对使用java编码的模式感到困惑。有jdee,看起来很像;据说他们比jdee更加精通java 1.5的构造;和emacs-eclim,这是emacs的eclipse后端。 emacs还有大量的完成扩展,我也困惑使用哪一个。事实上,我很困惑,所以我推迟使用任何一个,直到我得到建议。

I want to use emacs for java coding, but I'm confused on what mode to use for java coding. There's jdee, which seems ide-like; malabar, who is said to be more well versed in java 1.5 constructs than jdee; and emacs-eclim, which is an eclipse backend for emacs. There are also a wealth of completion extensions for emacs, and I'm also confused on which one to use. In fact, I'm so confused that I deferred using any of them until I get recommendations.

在emacs中,java-mode +完成的当前最佳选择是什么?而且,如果我决定使用我上面提到的组合,会发生冲突?

What is the current best option for java-mode + completion in emacs? And, if ever I decide to use a combination of what I mentioned above, will conflicts happen?

推荐答案

Emacs文本操作的力量,然后Eclipse似乎可以用一只脚踩踏自行车。来自 http://www.mulgasoft.com/ 的Emacs +插件非常适合将Emacs的键盘绑定到Eclipse中。

For those used to the power of Emacs text manipulation then Eclipse can seem like pedaling a bicycle with one foot. The Emacs+ plugin from http://www.mulgasoft.com/ is excellent for getting Emacs key bindings into Eclipse.

我使用Eclipse和Emacs很多,但如果我只做了Java开发,我可能只使用Eclipse与Emacs +。在Emacs上启用许多Eclipse功能需要一些工作。

I use both Eclipse and Emacs a lot, but if I only did Java development I might use only Eclipse with Emacs+. It takes some work to get many Eclipse features enabled on Emacs.

我的建议是使用Emacs> = 23.如果您使用的是Mac,请查看 AquaMacs 。我使用JDEE作为Java插件。这有一个严重的缺点,就是用泛型不好玩。这不是它停止工作,只是很多东西都不被认可。不要使用旧的2.3.5 JDEE插件(大多数Linux发行版都附带),而是从 sourceforge 获取2.4版本现场。还可以获取 Emacs代码浏览器(ECB);这是一个插件,它会给你的东西像Eclipse的Project Explorer和Outline视图(其他开发人员会看这个,不相信你,当他们告诉他们是Emacs)。在过去一年中,我已经在Windows,Mac和Linux上使用了这个设置用于商业项目。

My advice is to use Emacs >= 23. If you are on a Mac, look at AquaMacs. I use JDEE as the Java plugin. This has the serious drawback of not playing well with generics. It's not that it stops working, it's just that a lot of stuff isn't recognized. Do not use the old 2.3.5 JDEE plugin (that comes with most Linux distributions), but get the 2.4 version from the sourceforge site. Also get the Emacs Code Browser (ECB); this is a plugin that will give you stuff like Eclipse's Project Explorer and Outline views (other developers will look at this and not believe you when tell them that it's Emacs). I've used this setup for commercial projects on Windows, Mac, and Linux in the past year.

事实上,Eclipse与Emacs非常相似,我经常在他们俩。 Eclipse有一些很好的重构工具,我以前使用sed,它有一个很好的调试器接口。您可以同时使用它们。我发现我在使用其他人的代码和Emacs时,我在编写我自己的代码时使用Eclipse - Emacs是那么快。请注意,对于我来说,Emacs的很多价值是非Java功能,例如从本地Emacs在远程服务器上编辑Tomcat配置文件,使用LaTeX编写专业文档,以Python或Bash或MATLAB或XML开发,以及奇怪的文本操作任务(例如,将CVS文件转换成String []数组)。

In fact, Eclipse plays pretty well with Emacs and I often switch between the two. Eclipse has some nice refactoring tools that I used to use sed for, and it has a good debugger interface. You can use them simultaneously. I find that I use Eclipse when working with other people's code and Emacs when I am writing my own code---Emacs is that much faster. Note that for me, a lot of the value of Emacs is the non-Java functionality, like editing Tomcat configuration files on remote servers from my local Emacs, writing professional documents with LaTeX, developing in Python or Bash or MATLAB or XML, and the odd text manipulation task (e.g., converting CVS files into String[] arrays).

我没有使用你提到的其他两个项目。有可能已经使用Eclipse编译器与Emacs,所以我不知道我看到emacs-eclim项目的观点,这似乎是凶猛的。 Malabar项目可能是有趣的,但似乎是一个有点笨拙的开发人员的产品(例如,警告如果你不使用Maven(为什么?)你不应该考虑malabar模式---我会告诉我的客户端?)。

I haven't used the other two projects you mention. It is possible to use the Eclipse compiler with Emacs already, so I'm not sure I see the point of the emacs-eclim project, which seems to be moribund anyway. The Malabar project might be interesting, but seems to be the product of one somewhat cranky developer (e.g., the warning "if you're not using Maven (why?) you should not consider malabar-mode"---I'll tell my clients that?).

Java on Emacs在悲伤的状态。我希望JDEE得到振兴,但不清楚何时或将会发生。网站和邮件列表提供了很少的线索。

Java on Emacs is in a sad state. I wish for JDEE to be revitalized, but it's not clear when or if that will happen. The web site and mailing list offer few clues.

这篇关于Emacs java-mode:malabar,jdee还是eclim?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆