[Mono-list] Editor frustration.
Thomas F. Burdick
tfb@OCF.Berkeley.EDU
Wed, 1 Aug 2001 00:21:28 -0700
John Barnette writes:
> 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?
>
> Gracias in advance,
To switch a buffer's mode to FOO-mode, type M-x FOO-mode. To make it
work automatically based on the file extension, add this to your
~/.emacs file:
(add-to-list 'auto-mode-alist '("\\.cs\\'" . java-mode))
By the way, you might check out viper, the vi emulation package for
Emacs. I know it exists in FSF Emacs, and I assume it does in XEmacs,
too. I know some ex-vi'ers who swear by it.