top | item 14311086

(no title)

kt9 | 8 years ago

I've been using Emacs for over 15 years now and I do almost all my work in it. The two things that I still haven't found good solutions for in emacs are available out of the box in almost every editor today:

1. Autocomplete of methods, classes, variables etc 2. Auto import statement organisation

Yes I am aware of JDEE for #2 and I am aware of emacswiki/autocomplete but none of those solutions are as smooth, well integrated or work well enough like they do in atom or visual studio.

If someone was to rethink the problem from the ground up and solve it in an elegant and efficient way my life would be complete.

discuss

order

smg|8 years ago

Did you have a chance to look at

https://github.com/emacs-lsp/lsp-java

Microsoft's Language Server Protocol might be just the thing that takes Emacs sexiness to an entirely different level.

benaiah|8 years ago

Emacs features vary wildly in support from language to language - in Go, for instance, it's very easy to get both those working, while in Java it requires something more complicated such as eclim. company-mode is by far the best completion frontend, but the quality of the completions is dependent on how good the backend is, which varies a lot.

tkamat29|8 years ago

One word: emacs-eclim.

It basically takes the power of eclipse and runs it in a lightweight daemon, then ports most of the features (auto completion, refactoring, automatic imports, etc) directly to emacs.

harrygeez|8 years ago

For what it's worth, company mode + ggtags/ctags works reasonably well. I have heard a lot of good things about projectile too

gtycomb|8 years ago

ESS for R in statistics. For me Emacs is spectacular here. So what you are longing for is possible. https://ess.r-project.org/

noobhacker|8 years ago

I actually switched back to Rstudio, which has everything ESS has to offer (eg helm style autocomplete) plus much better autocomplete for tidy verse pipes.

Perhaps I'm missing some killer ESS features?

conistonwater|8 years ago

Is that a Java-specific thing? My experience with C++ is that ever since libclang became widely used, autocompletion works really well—but that's because libclang is so good. Is there an analog of libclang for Java?

hellofunk|8 years ago

What package are you using for your Emacs back end for completion? I've tried several and never really found them stable or even working in some cases. I write a couple thousand lines of C++ every week in emacs and I've actually become very productive without auto completion, so perhaps I'm not missing it anymore at all.

notalaser|8 years ago

For #1, maybe company-mode can be of assistance? I haven't used it with Java (I never had to write enough of it to need Emacs), but I imagine it works.

agumonkey|8 years ago

is JDEE based on CEDET ? CEDET is a proper abstraction for this but IIRC it's hard to use and a bit too slow.