emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* C# and org-mode
@ 2012-11-17 14:23 Fabrice Popineau
  2012-11-17 17:16 ` Eric Schulte
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Popineau @ 2012-11-17 14:23 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

Hi,

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?

Regards,

Fabrice

[-- Attachment #2: Type: text/html, Size: 400 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C# and org-mode
  2012-11-17 14:23 C# and org-mode Fabrice Popineau
@ 2012-11-17 17:16 ` Eric Schulte
  2012-11-20  3:05   ` Luis Anaya
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2012-11-17 17:16 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-orgmode@gnu.org

Fabrice Popineau <fabrice.popineau@gmail.com> writes:

> Hi,
>
> 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?
>

I don't know much about C#.  Assuming it is similar to C/C++ you could
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.

For more sophisticated interaction with C#-mode you may want to
implement a dedicated ob-csharp.el from this template.

http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el

Best,

>
> Regards,
>
> Fabrice

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C# and org-mode
  2012-11-17 17:16 ` Eric Schulte
@ 2012-11-20  3:05   ` Luis Anaya
  0 siblings, 0 replies; 3+ messages in thread
From: Luis Anaya @ 2012-11-20  3:05 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode@gnu.org, Fabrice Popineau

Eric Schulte <schulte.eric@gmail.com> writes:

> Fabrice Popineau <fabrice.popineau@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-20  3:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-17 14:23 C# and org-mode Fabrice Popineau
2012-11-17 17:16 ` Eric Schulte
2012-11-20  3:05   ` Luis Anaya

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).