How to Make Eclipse Like Emacs More

I am very familiar with emacs - and I understand that there is nothing that he cannot do, but there are some things that he does not do well or effectively. So, being between projects, I open the idea of โ€‹โ€‹moving to a fully functional IDE, such as Eclipse.

Since muscle memory is what it is, I would like to make Eclipse emacs as much as possible. I have already opened an excellent Emacs + plugin that will take me about halfway. However, I still lack the following emacs functions, which I usually rely on:

  • shell: it is not only a shell, but also a buffer.

  • : Search-> File ... is close to what I want, but I just want it to look for the current file โ€” it could be a text file, a log file or a shell buffer or whatever.

  • align-regexp: this amazing little command in emacs helps me make files more readable, and alignment helps with keyboard macros.

What plugins would you recommend to solve these problems? Are there any other emacs features that you skip in Eclipse or plugins that you would recommend?

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

+7
eclipse emacs ide
source share
3 answers

Shell view

  • Ctrl + F is enough to trigger a search in the current file. (does not create a new buffer with matching lines)
    Only Mark Occurrences is dedicated to highlighting occurrences, but it's not as complicated as the Emacs function.

Mark occurrences

  • Formatting options can emulate the align-regex function described here.

Preferences -> Java -> Code Style -> Formatter .
Click "Edit" in the profile (you may need to create a new one, since you cannot edit the default value).

In the indent section, select " Align fields with columns ".

Then in your code Ctrl + Shift + F this formatter will be launched.

+3
source share

I can confirm Brian's suggestion (Emacs key bindings). What I'm doing to solve this dilemma is to use Emacs and Eclipse at the same time. Both of them report external changes in files very well, so there is minimal chance of thromping when editing (but this can happen). Moreover, you can use the strengths of both tools without giving up one. The combination of using both tools and Eclipse with Emacs key bindings makes this quite satisfactory for me.

+2
source share

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

+1
source share

All Articles