From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis Anaya Subject: Re: C# and org-mode Date: Mon, 19 Nov 2012 22:05:33 -0500 Message-ID: References: <877gpk9ml6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaeAw-0003BG-NJ for emacs-orgmode@gnu.org; Mon, 19 Nov 2012 22:07:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaeAv-0000mK-Ba for emacs-orgmode@gnu.org; Mon, 19 Nov 2012 22:07:02 -0500 Received: from blu0-omc1-s5.blu0.hotmail.com ([65.55.116.16]:21483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaeAv-0000lq-7p for emacs-orgmode@gnu.org; Mon, 19 Nov 2012 22:07:01 -0500 In-Reply-To: <877gpk9ml6.fsf@gmail.com> (Eric Schulte's message of "Sat\, 17 Nov 2012 10\:16\:21 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: "emacs-orgmode@gnu.org" , Fabrice Popineau Eric Schulte writes: > Fabrice Popineau 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