emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] C# and org-mode


From: Luis Anaya
Subject: Re: [O] C# and org-mode
Date: Mon, 19 Nov 2012 22:05:33 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Eric Schulte <address@hidden> writes:

> Fabrice Popineau <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]