Angus
Angus

Reputation: 93

How to highlight the selection in Emacs keybinding of Eclipse?

I have searched the Web for this, but with no luck. Any idea?

Thanks.

Upvotes: 8

Views: 3698

Answers (2)

jmcmichael
jmcmichael

Reputation: 611

Try using the Emacs+ plugin available here:

http://www.mulgasoft.com/emacsplus

It provides a HUGE range of functionality - including the selection highlighting that you're looking for - that really helps the move from Emacs. I've only been using it for a couple of days, but it appears stable and integrates very well with the editor.

Upvotes: 5

VonC
VonC

Reputation: 1324337

As described here, you can set emacs key binding to work in component editor in Eclipse

Go to Preferences -> General -> Keys.

  • Change Scheme to Emacs if you haven't done so already, so you can easily spot the emacs key bindings.
  • Sort by Category and look at the "Text Editing" categories
  • Find the commands that you care about, e.g. Next Column, Previous Column
  • Select that command and click "Copy Command"
  • Set the binding to the key by pressing the keys, e.g. press Control-f to generate "^F".
  • Change "When:" to "Editing Components".
  • Repeat for all the key bindings you care about.

So if, in emacs, selection is done by setting the mark (Control-Space) at the start of the region, then moving the point to to the end of the region, you could associate the appropriate shortcut to:

Text Editing > Select Text Start
Text Editing > Select Text End

Upvotes: 3

Related Questions