Eric Schulte <schulte.e...@gmail.com> writes: > Fabrice Popineau <fabrice.popin...@gmail.com> writes:
Full disclosure: I have to code C# at work for Sharepoint development. (yes, I know... ) >> Given that there is this C# mode : >> http://www.emacswiki.org/emacs/csharp-mode.el >> is there a way to plug it in org-mode so that >> C# becomes part of the languages available for src blocks? [chomp...] > take a look at tweaking lisp/ob-C.el file in Org-mode to add C# support > following the same model used to add C++ support in that file. [chomp...] > For more sophisticated interaction with C#-mode you may want to > implement a dedicated ob-csharp.el from this template. You may also want to take a look at flymake.el (http://flymake.sourceforge.net) for ideas on integration being that it was developed for C#. If you want to use it as a src block, get the ideas from flymake.el to incorporate them with a potential ob-csharp.el. Caveat Emptor. Using flymake.el and org.el *will* break C-' in org mode if you have flymake attached to a given programming mode hook. I only mention flymake.el because it has a fair integration with csc/msc and you may want to get ideas on how to implement some of these in ob-csharp, especially error handling from csc/msc compiler. I use flymake.el at work being that I do not use C# in src blocks. csharp-mode.el tends to be temperamental with the version of cc mode. If csharp-mode.el starts acting funny, cc mode is the problem. Make sure that you have the latest and greatest in your environment. -- Luis Anaya papo anaya aroba hot mail punto com "Do not use 100 words if you can say it in 10" - Yamamoto Tsunetomo