[Mono-list] Editor frustration.
Rodrigo Moya
rodrigo@ximian.com
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
files, so
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
cheers
--
Rodrigo Moya <rodrigo@gnome-db.org> - <rodrigo@ximian.com>
http://www.gnome-db.org/ - http://www.ximian.com/