emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel: reusing language-specific functions
@ 2014-10-07 11:46 Jarmo Hurri
  2014-10-07 12:09 ` Thorsten Jolitz
  0 siblings, 1 reply; 5+ messages in thread
From: Jarmo Hurri @ 2014-10-07 11:46 UTC (permalink / raw)
  To: emacs-orgmode


Greetings.

I have a very basic Babel question, but I can not extract the solution
from the manual.

I have a language-specific function - in this case Asymptote, but it
could be e.g. C as well - that I want to use in a number of different
source blocks of the same language in an Org file. How do I accomplish
this?

Currently my solution is to write the function into an external source
file, and include the file in the source blocks. But that looks ugly,
and is sort of against the Org-mode way of doing things: all code in the
same place for completeness and convenience.

How can I achieve what I want?

All the best,

Jarmo

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

end of thread, other threads:[~2014-10-10  2:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-07 11:46 Babel: reusing language-specific functions Jarmo Hurri
2014-10-07 12:09 ` Thorsten Jolitz
2014-10-07 16:18   ` Thomas S. Dye
2014-10-09  5:23     ` Jarmo Hurri
2014-10-10  2:11       ` Grant Rettke

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).