From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Babel: reusing language-specific functions Date: Tue, 07 Oct 2014 14:46:42 +0300 Message-ID: <87d2a4w199.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbTHQ-0003zm-MM for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 07:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbTHJ-00080W-6e for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 07:50:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:43703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbTHJ-0007yZ-1P for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 07:50:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XbTHH-0002Rl-Or for emacs-orgmode@gnu.org; Tue, 07 Oct 2014 13:50:03 +0200 Received: from host-137-163-18-130.edu.hel.fi ([137.163.18.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Oct 2014 13:50:03 +0200 Received: from jarmo.hurri by host-137-163-18-130.edu.hel.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Oct 2014 13:50:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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