473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Emacs for VS 2005 beta 2

_R
I'd love to get Emacs/Epsilon emu mode back for the VS code editor.
Is there any way to do this? Apparently 2005b2 has an option for
"Apply the following additional keyboard mapping scheme' and one of
the opts is Emacs. What does that do exactly?

Nov 17 '05 #1
10 1260
_R wrote:
I'd love to get Emacs/Epsilon emu mode back for the VS code editor.


I have written a plugin for CodeRush that implements some of the electric
editing functionality from Emacs for C#. Have a look if you like:
http://www.sturmnet.org/blog/cr-electric-editing/
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #2
_R
On Tue, 30 Aug 2005 03:22:08 -0700, "Oliver Sturm"
<ol****@sturmnet.org> wrote:
_R wrote:
I'd love to get Emacs/Epsilon emu mode back for the VS code editor.


I have written a plugin for CodeRush that implements some of the electric
editing functionality from Emacs for C#. Have a look if you like:
http://www.sturmnet.org/blog/cr-electric-editing/
Oliver Sturm


Now that's a serious editor-oriented page! I'll be taking a much
closer look, especially as I get up to speed on VS2005 (just loaded it
and got my hopes up when I saw the word 'Emacs').

Your page opens up a lot of questions about 'Best Editor.' In
chatting with someone a while back about the unsuitability of MS's own
editor for code editing, they said in passing "Emacs' key mapping
sucks." They were talking about the fact that you don't need mnemonic
prompts for cursor-right, cursor-left, etc. Those will be the first
to develop reflexively. So Emacs' ^f for 'Forward' is essentially a
step back from the old WordStar commands that were 'compass-mapped'
and directly under the left hand.

This hadn't occurred to me because I'm so accustomed to Emacs already.
Still, I can't imagine a more awkward code editor than MS's previous
VS editors, so I was astonished when they eliminated Epsilon/Brief
emulations.

I think the most important things to me are getting a base set of
reflexive keystrokes back and functioning, like ^k for "kill to end of
line." Awkward to try to remap ^k in MS's editor of course, so I've
ended up struggling with the MS mapping.
Nov 17 '05 #3
_R wrote:
Now that's a serious editor-oriented page! I'll be taking a much
closer look, especially as I get up to speed on VS2005 (just loaded it
and got my hopes up when I saw the word 'Emacs').
I like the topic :-) But there are two different things there: the quest
for the best text editor page is just a general thing, while the electric
editing project is specifically for VS - one of the most Emacs important
features for me, still missing from standard VS. It's based on CodeRush, a
tool that really does wonders for code editing in VS, without being like
Emacs by itself :-) Look here if you're interested:
http://www.devexpress.com/Products/NET/Coderush/
Your page opens up a lot of questions about 'Best Editor.' In
chatting with someone a while back about the unsuitability of MS's own
editor for code editing, they said in passing "Emacs' key mapping
sucks." They were talking about the fact that you don't need mnemonic
prompts for cursor-right, cursor-left, etc. Those will be the first
to develop reflexively. So Emacs' ^f for 'Forward' is essentially a
step back from the old WordStar commands that were 'compass-mapped'
and directly under the left hand.
Nothing originally WordStar about that, I think. Using traditional vi on
traditional Unix system keyboards worked with a similar metaphor, just by
using the keys for cursor navigation that were under the fingers anyway.
I think the most important things to me are getting a base set of
reflexive keystrokes back and functioning, like ^k for "kill to end of
line." Awkward to try to remap ^k in MS's editor of course, so I've
ended up struggling with the MS mapping.


Good idea for the plugin, I guess :-) But then, it would be easy to do
this as a macro or whatever - simply execute the keystrokes for Shift+End,
Delete.

Anyway, my general opinion is that most people find the approaches most
comfortable that they are most accustomed to. I sometimes make the effort
to try and break out of my own usage patterns, because I believe that's
the way to discover new things. And for code editing, it's really simple
for me: automation, as much as possible. That's something that the old
Emacs C++ mode was already better at than most other programmers' editors
are today.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #4
Nice to see emacs getting a mention in a Microsoft C# forum! :)

My 2c worth...

1. emacs used to be my editor of choice, and I've developed a lot of C and
Java code in it, but over recent years I've switched to vim. I just like the
"primitive" feel of it, compared with the double key commands for emacs, and
also the fact that vim (or vi) is available anywhere.

2. I do most of my project development within VS, and don't find the
graphical editor, with intellisense, limiting. The only things which really
bug me are the lack of keystrokes for: deleting a whole line; deleting to the
end of a line.

3. I write lots of little C# programs from the command line, in VIM. C#
makes command line programming possible again, where I wouldn't consider
doing the smallest MFC/C++ program without the assistance of visual studio.

4. I've tried to look at Oliver's editors page, but it's timing out at the
moment. I'll take a look some other time. I bet it's interesting!

Ciao,

Javaman

"Oliver Sturm" wrote:
_R wrote:
Now that's a serious editor-oriented page! I'll be taking a much
closer look, especially as I get up to speed on VS2005 (just loaded it
and got my hopes up when I saw the word 'Emacs').


I like the topic :-) But there are two different things there: the quest
for the best text editor page is just a general thing, while the electric
editing project is specifically for VS - one of the most Emacs important
features for me, still missing from standard VS. It's based on CodeRush, a
tool that really does wonders for code editing in VS, without being like
Emacs by itself :-) Look here if you're interested:
http://www.devexpress.com/Products/NET/Coderush/
Your page opens up a lot of questions about 'Best Editor.' In
chatting with someone a while back about the unsuitability of MS's own
editor for code editing, they said in passing "Emacs' key mapping
sucks." They were talking about the fact that you don't need mnemonic
prompts for cursor-right, cursor-left, etc. Those will be the first
to develop reflexively. So Emacs' ^f for 'Forward' is essentially a
step back from the old WordStar commands that were 'compass-mapped'
and directly under the left hand.


Nothing originally WordStar about that, I think. Using traditional vi on
traditional Unix system keyboards worked with a similar metaphor, just by
using the keys for cursor navigation that were under the fingers anyway.
I think the most important things to me are getting a base set of
reflexive keystrokes back and functioning, like ^k for "kill to end of
line." Awkward to try to remap ^k in MS's editor of course, so I've
ended up struggling with the MS mapping.


Good idea for the plugin, I guess :-) But then, it would be easy to do
this as a macro or whatever - simply execute the keystrokes for Shift+End,
Delete.

Anyway, my general opinion is that most people find the approaches most
comfortable that they are most accustomed to. I sometimes make the effort
to try and break out of my own usage patterns, because I believe that's
the way to discover new things. And for code editing, it's really simple
for me: automation, as much as possible. That's something that the old
Emacs C++ mode was already better at than most other programmers' editors
are today.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog

Nov 17 '05 #5
Nice to see emacs getting a mention in a Microsoft C# forum! :)

My 2c worth...

1. emacs used to be my editor of choice, and I've developed a lot of C and
Java code in it, but over recent years I've switched to vim. I just like the
"primitive" feel of it, compared with the double key commands for emacs, and
also the fact that vim (or vi) is available anywhere.

2. I do most of my project development within VS, and don't find the
graphical editor, with intellisense, limiting. The only things which really
bug me are the lack of keystrokes for: deleting a whole line; deleting to the
end of a line.

3. I write lots of little C# programs from the command line, in VIM. C#
makes command line programming possible again, where I wouldn't consider
doing the smallest MFC/C++ program without the assistance of visual studio.

4. I've tried to look at Oliver's editors page, but it's timing out at the
moment. I'll take a look some other time. I bet it's interesting!

Ciao,

Javaman

"Oliver Sturm" wrote:
_R wrote:
Now that's a serious editor-oriented page! I'll be taking a much
closer look, especially as I get up to speed on VS2005 (just loaded it
and got my hopes up when I saw the word 'Emacs').


I like the topic :-) But there are two different things there: the quest
for the best text editor page is just a general thing, while the electric
editing project is specifically for VS - one of the most Emacs important
features for me, still missing from standard VS. It's based on CodeRush, a
tool that really does wonders for code editing in VS, without being like
Emacs by itself :-) Look here if you're interested:
http://www.devexpress.com/Products/NET/Coderush/
Your page opens up a lot of questions about 'Best Editor.' In
chatting with someone a while back about the unsuitability of MS's own
editor for code editing, they said in passing "Emacs' key mapping
sucks." They were talking about the fact that you don't need mnemonic
prompts for cursor-right, cursor-left, etc. Those will be the first
to develop reflexively. So Emacs' ^f for 'Forward' is essentially a
step back from the old WordStar commands that were 'compass-mapped'
and directly under the left hand.


Nothing originally WordStar about that, I think. Using traditional vi on
traditional Unix system keyboards worked with a similar metaphor, just by
using the keys for cursor navigation that were under the fingers anyway.
I think the most important things to me are getting a base set of
reflexive keystrokes back and functioning, like ^k for "kill to end of
line." Awkward to try to remap ^k in MS's editor of course, so I've
ended up struggling with the MS mapping.


Good idea for the plugin, I guess :-) But then, it would be easy to do
this as a macro or whatever - simply execute the keystrokes for Shift+End,
Delete.

Anyway, my general opinion is that most people find the approaches most
comfortable that they are most accustomed to. I sometimes make the effort
to try and break out of my own usage patterns, because I believe that's
the way to discover new things. And for code editing, it's really simple
for me: automation, as much as possible. That's something that the old
Emacs C++ mode was already better at than most other programmers' editors
are today.
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog

Nov 17 '05 #6
_R
On Tue, 30 Aug 2005 11:34:36 -0700, "Oliver Sturm"
<ol****@sturmnet.org> wrote:
http://www.devexpress.com/Products/NET/Coderush/


Thanks for the link.
_R:
I think the most important things to me are getting a base set of
reflexive keystrokes back and functioning, like ^k for "kill to end of
line." Awkward to try to remap ^k in MS's editor of course, so I've
ended up struggling with the MS mapping.


Good idea for the plugin, I guess :-) But then, it would be easy to do
this as a macro or whatever - simply execute the keystrokes for Shift+End,
Delete.


There is built-in functionality for 'kill to end of line' in the MS
editor, but it's tough to map to ^k cause ^k is one of the MS prefixes
for multikey commands. Like trying remapping ^x in Emacs--it would
break a lot of stuff. Unfortunately I use ^k constantly in
Epsilon/Emacs. Tough to do without.

Nov 17 '05 #7
_R
On Tue, 30 Aug 2005 11:34:36 -0700, "Oliver Sturm"
<ol****@sturmnet.org> wrote:
http://www.devexpress.com/Products/NET/Coderush/


Thanks for the link.
_R:
I think the most important things to me are getting a base set of
reflexive keystrokes back and functioning, like ^k for "kill to end of
line." Awkward to try to remap ^k in MS's editor of course, so I've
ended up struggling with the MS mapping.


Good idea for the plugin, I guess :-) But then, it would be easy to do
this as a macro or whatever - simply execute the keystrokes for Shift+End,
Delete.


There is built-in functionality for 'kill to end of line' in the MS
editor, but it's tough to map to ^k cause ^k is one of the MS prefixes
for multikey commands. Like trying remapping ^x in Emacs--it would
break a lot of stuff. Unfortunately I use ^k constantly in
Epsilon/Emacs. Tough to do without.

Nov 17 '05 #8
_R
On Tue, 30 Aug 2005 18:45:03 -0700, Javaman59
<Ja*******@discussions.microsoft.com> wrote:
1. emacs used to be my editor of choice, and I've developed a lot of C and
Java code in it, but over recent years I've switched to vim. I just like the
"primitive" feel of it, compared with the double key commands for emacs, and
also the fact that vim (or vi) is available anywhere.
I guess there are more 'vi' versions than 'emacs's, but Emacs is
available for lots of platforms as well. I ended up with it via the
Epsilon editor in MSDOS days.
2. I do most of my project development within VS, and don't find the
graphical editor, with intellisense, limiting. The only things which really
bug me are the lack of keystrokes for: deleting a whole line; deleting to the
end of a line.


Exactly my problem. I don't want to edit outside of VS and do without
Intellisense. But I don't understand how programmers with good
touch-typing skills are content to lift their fingers off the asdf /
jkl; keys and move over to the cursor pad. Its a major distraction.
Also, the alpha keys are in the same place on every keyboard.

Bad enough that the CTL and ALT keys have changed position over the
years (CTL key was where the Caps-Lock usuallly is now, and the ALT
key was where the CTL key was. I found that layout much more
practical. Why did they change it?)

Given that I have to type on a few different keyboard layouts, I'd
much prefer that the cursor/delete/kill/etc commands were mapped to
CTL and ALT combos.

By the way, the previous VS editor did have a 'kill entire line'
mapped to ^l (that's L). Unfortunately typing ^l in some other MS
environments is playing keyboard roulette--you never know what's going
to happen.

Nov 17 '05 #9
_R
On Tue, 30 Aug 2005 18:45:03 -0700, Javaman59
<Ja*******@discussions.microsoft.com> wrote:
1. emacs used to be my editor of choice, and I've developed a lot of C and
Java code in it, but over recent years I've switched to vim. I just like the
"primitive" feel of it, compared with the double key commands for emacs, and
also the fact that vim (or vi) is available anywhere.
I guess there are more 'vi' versions than 'emacs's, but Emacs is
available for lots of platforms as well. I ended up with it via the
Epsilon editor in MSDOS days.
2. I do most of my project development within VS, and don't find the
graphical editor, with intellisense, limiting. The only things which really
bug me are the lack of keystrokes for: deleting a whole line; deleting to the
end of a line.


Exactly my problem. I don't want to edit outside of VS and do without
Intellisense. But I don't understand how programmers with good
touch-typing skills are content to lift their fingers off the asdf /
jkl; keys and move over to the cursor pad. Its a major distraction.
Also, the alpha keys are in the same place on every keyboard.

Bad enough that the CTL and ALT keys have changed position over the
years (CTL key was where the Caps-Lock usuallly is now, and the ALT
key was where the CTL key was. I found that layout much more
practical. Why did they change it?)

Given that I have to type on a few different keyboard layouts, I'd
much prefer that the cursor/delete/kill/etc commands were mapped to
CTL and ALT combos.

By the way, the previous VS editor did have a 'kill entire line'
mapped to ^l (that's L). Unfortunately typing ^l in some other MS
environments is playing keyboard roulette--you never know what's going
to happen.

Nov 17 '05 #10
_R wrote:
Good idea for the plugin, I guess :-) But then, it would be easy to do
this as a macro or whatever - simply execute the keystrokes for Shift+End,
Delete.


There is built-in functionality for 'kill to end of line' in the MS
editor, but it's tough to map to ^k cause ^k is one of the MS prefixes
for multikey commands. Like trying remapping ^x in Emacs--it would
break a lot of stuff. Unfortunately I use ^k constantly in
Epsilon/Emacs. Tough to do without.


Oh, I see. Right - I don't normally use any of the standard multi-key
mappings in VS, CodeRush does away with that :-)
Oliver Sturm
--
omnibus ex nihilo ducendis sufficit unum
Spaces inserted to prevent google email destruction:
MSN oliver @ sturmnet.org Jabber sturm @ amessage.de
ICQ 27142619 http://www.sturmnet.org/blog
Nov 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: ik | last post by:
ERROR after uninstalling SQL Server 2005 Express I get this message, SQLDMO has not been registered. Please re-run your setupand contact your system administrator. GREAT!!! ReInstalled SQL...
9
by: Alan Mackenzie | last post by:
To all those who use (X)Emacs's CC Mode to edit C, C++, Java, Objective-C, Pike, AWK or IDL: To help direct the development of CC Mode, it would be useful to find out how people use the...
3
by: Mike P | last post by:
I've been using Visual Studio 2005 Beta 1 for the last few weeks, and I now want to try using SQL Server 2005 Beta with it. I've been to the Microsoft URL...
1
by: Peted | last post by:
Hi, sorry if this isnt the correct newsgroups for this questions but im using vc++ 2005 express edition beta2 for learning to program vc++ ..net, as in winforms applications and i was wondering...
3
by: pine | last post by:
hi! i just joined this group today after a colleague told me about it. anyway, i'm new to SQL and haven't tried installing any version of it. I do have vb 6.0 though on my pc. My problem is that I...
7
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑...
2
by: V | last post by:
VS2005 Emacs mode copy/paste bugs are still not fixed in SP1 beta. They've been reported to Microsoft since the original Emacs mode, but it doesn't look like MS has much interest in fixing them....
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.