> imagine keeping code in Emacs's Org mode and being able to compile it.
Org mode already does that using Org Babel. I use it to take "code notes" (code blocks with their evaluated/compiled outputs with notes) for Python [0], Nim[0,1], Awk [2], PlantUML[3], etc.
Org mode already does that using Org Babel. I use it to take "code notes" (code blocks with their evaluated/compiled outputs with notes) for Python [0], Nim[0,1], Awk [2], PlantUML[3], etc.
[0]: https://scripter.co/notes/string-fns-nim-vs-python/
[1]: https://scripter.co/notes/nim/
[2]: https://scripter.co/notes/awk/
[3]: https://scripter.co/notes/plantuml/