C# for Emacs is a derived mode implementing most of the C# rules.
After a good number of years, we noticed that there wasn't a "non-patched" version of a csharp-mode for Emacs.
There were a few, but most of them had comments that they were "in progress" or "about to merge", but then we noticed that those notices were there even after a couple of months.
Then, we saw a request for a csharp-mode on the cc-mode Emacs site, so we decided to follow the rules and create one that required no patching or modification to the core cc-mode engine (which is a good thing). So, this is the C# mode.
There was a 0.3.0 version, but it broke things more than it fixed, so we pulled it.
┬· CC Mode (5.30.x)
Once cc-mode 5.30.x is installed, the installation of csharp-mode is actually very easy. The simplest way is to put csharp-mode.el into the same directory as the cc-mode. A more appropriate method is to put it into a shared lisp directory and refer to that in the appropriate configuration file.
bash$ mkdir -p $HOME/share/elisp
bash$ cp csharp-mode.el $HOME/share/elisp
Once you have placed the csharp-mode.el file in the appropriate place, you need to tell your Emacs installation how to find the new file.
What's New in This Release:
┬· This release adds autoload tags for automated processing.
┬· It expands #region and #endregion font locking to the entire line to hide internal keyword highlighting.
┬· It adds font locking for get, set, add, and remove.
What's New in This Release: [ read full changelog ]
· You can now navigate through C# modules via the emacs imenu tool, allowing you to easily jump to methods, classes, properties, etc. fxcopcmd.exe can now be used as a flymake tool, and error messages are properly displayed.