From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: babel srcname? Calling Library of Babel code? Date: Tue, 06 Oct 2015 09:00:40 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjXUk-0004Pj-LN for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 15:02:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjXTp-000243-Vb for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 15:01:50 -0400 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:46446) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZjXTp-00023U-NO for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 15:00:53 -0400 In-reply-to: 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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist Aloha Lawrence, Lawrence Bottorff writes: > Thanks for the info, T. Now, if I commit a file of source code blocks to be > "library of babel," how do I then call them? Is there some sort of prefix? You can name the file as you wish, and you can have as many libraries of Babel as need be. I have this code in .emacs to load one of my libraries of Babel: (org-babel-lob-ingest "~/org/td-lob.org") After the library has been "ingested" then you can call the named source code blocks it contains, just like you would if they were defined in your working buffer. hth, Tom -- Thomas S. Dye http://www.tsdye.com