From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: preparation-function syntax for publishing Date: Thu, 22 Oct 2009 10:39:48 +0200 Message-ID: <5F3251E6-C9FA-476F-9912-701A35726A54@gmail.com> References: <87aazkhn9o.fsf@z.nozav.org> <8763a7hljh.fsf@z.nozav.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0tDB-0008Oc-RA for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:39:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0tD6-0008N5-Rw for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:39:57 -0400 Received: from [199.232.76.173] (port=48344 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0tD6-0008N2-Jq for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:39:52 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:58765) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0tD6-0001kf-8p for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 04:39:52 -0400 Received: by ewy2 with SMTP id 2so8365731ewy.31 for ; Thu, 22 Oct 2009 01:39:51 -0700 (PDT) In-Reply-To: <8763a7hljh.fsf@z.nozav.org> 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: Julien Barnier Cc: emacs-orgmode@gnu.org On Oct 22, 2009, at 10:37 AM, Julien Barnier wrote: > 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 :preparation-function (lambda () (load "org-style")) HTH - Carsten