views:

544

answers:

3

I know about the included emacs keybindings, it's barely ok.

I want to know if there exists a more thorough emacs add-in for visual studio similar to viemu for vi.

I found VisEmacs but it seems unfinished.

+1  A: 

It's more likely that you'll get the results you want going in the other direction; adding stuff to Emacs until it's more like Visual Studio.

jrockway
+3  A: 

You can try XKeymacs, which sets up emacs key bindings in any windows application. I tried and abandoned it, but your mileage may vary.

James Sulak
+1  A: 

You could probably do this by hooking the application's message loop and "eating" all keystrokes. When a key sequence to perform some action is entered, send Visual Studio a direct editing command for processing.

I've done this with the mouse so I could turn mouse wheel into pageup/down instead of zoom.

I'd need to see the emacs commands state machine to give more specifics.

Edit: You'd have to track the editor focus to know what is active (dialog, tool pane, text editor, designer, properties window, etc.), but that's not bad once you've done it a few times.

Edit 2: My add-in mentioned above is open source (GPL) so you can see if it gives you a starting place. You can either install it and find the source in the Program Files directory, or use 7-zip to decompress the installer to pull the source's .7z file out without installing. Here's a link (SamTools Releases).

280Z28
Interesting I'll check it out
Nifle
Let me know if you have questions. I'd be interested to see this work out even though I'd *never* use it. Advanced key binding state flow in complex applications is a challenging and entertaining problem to solve.
280Z28