Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any emacs add-in for visual studio?

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.

like image 804
Nifle Avatar asked Jul 17 '09 10:07

Nifle


People also ask

Is Emacs faster than Vscode?

VS Code is a great editor, and for what it's worth, it's also easily customizable. But after a couple of days of using Emacs, I couldn't tell the difference between the two. And after another couple of days, I couldn't believe I had been missing out for a long time: Emacs seemed much faster and minimal.


2 Answers

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

like image 94
James Sulak Avatar answered Sep 27 '22 23:09

James Sulak


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).

like image 38
Sam Harwell Avatar answered Sep 27 '22 21:09

Sam Harwell