Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight the selection in Emacs keybinding of Eclipse?

Tags:

emacs

eclipse

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

Thanks.

like image 615
Angus Avatar asked Apr 10 '09 08:04

Angus


2 Answers

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.

like image 138
jmcmichael Avatar answered Oct 12 '22 12:10

jmcmichael


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
like image 22
VonC Avatar answered Oct 12 '22 13:10

VonC