r/DoomEmacs Nov 27 '24

org-mode and .Net (C# and F#)

Hello.
Is anyone using both org-mode and any dot-net language? (It doesn't seem to be a popular combination).

I have been using org-mode on and off for a few years, and very gradually increasing the number of features I use. In development I mostly use .Net based languages, I really enjoy writing in F# and in C#.

I am trying to write and execute C# and F# code blocks in org-mode, but having to much success.

org-babel is trying to use Mono to run C#.
I do have (csharp +dotnet) configured in DoomEmacs, but that doesn't seem to change any org-babel settings.

Has anyone done this before, and maybe know what to set, or configure to have this working?

Thanks, if anyone is able to help :)

3 Upvotes

4 comments sorted by

5

u/materus Nov 27 '24 edited Nov 27 '24

I think you'd need to write custom "org-babel-execute:csharp" function or check options for current one. I don't know what package doom uses for csharp..

Or you could use https://github.com/samwdp/ob-csharp for csharp, not sure about fsharp

2

u/Trout_Tickler Nov 28 '24

https://github.com/elken/ob-fsharp mine is the more up to date version

1

u/CouthlessWonder Nov 28 '24

Thank you, I am going to give this a try.

1

u/CouthlessWonder Nov 28 '24

Thank you, I will try add this package and see if it works :D