emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Luis Anaya <papoanaya@hotmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Fabrice Popineau <fabrice.popineau@gmail.com>
Subject: Re: C# and org-mode
Date: Mon, 19 Nov 2012 22:05:33 -0500	[thread overview]
Message-ID: <BLU0-SMTP415858BA6A1139396E6145B7550@phx.gbl> (raw)
In-Reply-To: <877gpk9ml6.fsf@gmail.com> (Eric Schulte's message of "Sat\, 17 Nov 2012 10\:16\:21 -0700")

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

      reply	other threads:[~2012-11-20  3:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU0-SMTP415858BA6A1139396E6145B7550@phx.gbl \
    --to=papoanaya@hotmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@gmail.com \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).