Brian
Brian

Reputation: 710

How to Make Eclipse More Like Emacs

I am very familiar with emacs--and I realize that there is nothing that it cannot do--but there are some things that it does not do well or efficiently. So, being between projects I am open to the idea of switching to a full-featured IDE such as Eclipse.

With muscle-memory being what it is, I would like to make Eclipse as emacs-like as possible. I have already discovered the excellent Emacs+ plugin which gets me about halfway there. However, I am still missing the following features of emacs which I routinely rely upon:

What plugins would you recommend to solve these issues? Are there any other emacs features you miss in Eclipse or plugins you would recommend?

Please, no emacs/vi zealots asking why on Earth I would do such a thing.

Upvotes: 7

Views: 2347

Answers (3)

VonC
VonC

Reputation: 1324278

Shell view

  • Ctrl+F is enough to trigger a Search within the current file. (does not create a new buffer with matched lines)
    Only Mark Occurrences is about highlighting occurrences, but that is not as advanced as the Emacs function.

Mark Occurrences

  • Formatter options can emulate "align-regex" function, as described here.

Preferences -> Java -> Code Style -> Formatter.
Click 'Edit' on the profile (you may need to make a new one since you can't edit the default).

In the indentation section select 'Align fields with columns'.

Then, in your code Ctrl+Shift+F will run that formatter.

Upvotes: 3

pajato0
pajato0

Reputation: 3676

I can confirm Brian's suggestion (Emacs key-bindings). What I do to resolve this dilemma is to use both Emacs and Eclipse simultaneously. They are both very good at reporting external changes to files so there is minimal chance of tromping on edits (but it can happen). More to the point, you can leverage the strengths of both tools without having to give up either one. The combination of using both tools and Eclipse having Emacs key-bindings makes this quite satisfactory for me.

Upvotes: 2

Brian Postow
Brian Postow

Reputation: 12187

IIRC (It's been a while since I've used eclipse) eclipse has a "use Emacs key-bindings" mode. I believe that there's also the option to tell eclipse to use emacs as its own editor...

Upvotes: 1

Related Questions