[Mono-list] Editor frustration.
01 Aug 2001 14:30:12 +0200
On 31 Jul 2001 21:13:36 -0600, John Barnette wrote:
> Guys, feel free to reply to this offlist. After a rabid, foaming fit at the
> inadequacy of all freely-available GUI editors, I decided to go for broke
> and switch to XEMACS. While I'm currently overwhelmed with C-this and
> M-that, I'm already pretty damn amused.
> Amused, yes, but I'd rather be writing code. Could somebody enlighten me as
> how to either switch the mode (I assume cc-mode will work reasonably well
> for C#) or bind a mode to a file's extension?
(setq auto-mode-alist (cons '("\.xml$" . sgml-mode) auto-mode-alist))
That's what I've got in my .emacs for using the SGML mode with .xml
I suppose (I'm not an expert on .emacs stuff) you should just replace
the .xml with .cs and sgml-mode with cc-mode
hope it helps
Rodrigo Moya <firstname.lastname@example.org> - <email@example.com>
http://www.gnome-db.org/ - http://www.ximian.com/