From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Barnier Subject: Re: preparation-function syntax for publishing Date: Thu, 22 Oct 2009 10:37:06 +0200 Message-ID: <8763a7hljh.fsf@z.nozav.org> References: <87aazkhn9o.fsf@z.nozav.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0tB0-0007c7-7P for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:37:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0tAv-0007Zw-EV for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:37:41 -0400 Received: from [199.232.76.173] (port=48284 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0tAv-0007Zr-3y for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:37:37 -0400 Received: from lo.gmane.org ([80.91.229.12]:42961) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0tAu-00010K-NZ for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:37:36 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N0tAr-0001pR-Vh for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 10:37:33 +0200 Received: from z.nozav.org ([91.121.121.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2009 10:37:33 +0200 Received: from julien by z.nozav.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2009 10:37:33 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, > I'm trying to use the :preparation-function argument for project > publishing. What I'd like to achieve i s to load a file in order to > define some styling elements for the export process, something such > as : > > (load "org-style") > > I tried several different syntaxes, such as : > > :preparation-function (load "org-style") > > But I didn't manage to achieve it, whichever syntax I try I get an > invalid function error. Sorry to answer to myself, but I just wanted to mention that I found a quick workaround. You can just create a new function : (defun my-load-org-style () (load "org-style")) And then use : :preparation-function my-load-org-style I don't know if there is a way to achieve this directly without a new function declaration, but this way seems to work for me. -- Julien