From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: running some elisp code when exporting a given file Date: Thu, 05 Sep 2013 14:39:00 +0200 Message-ID: References: <87mwnrr38y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHYq4-000253-TU for emacs-orgmode@gnu.org; Thu, 05 Sep 2013 08:39:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHYpx-0004EP-Jw for emacs-orgmode@gnu.org; Thu, 05 Sep 2013 08:39:08 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHYpx-0004EL-Do for emacs-orgmode@gnu.org; Thu, 05 Sep 2013 08:39:01 -0400 In-reply-to: <87mwnrr38y.fsf@gmail.com> 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: Myles English Cc: emacs-orgmode mylesenglish@gmail.com writes: > Hi Alan, > > Alan Schmitt writes: > >> Is there a way to have arbitrary code stored in the file being exported >> being evaluated before an export? > > I think you can use org-export-before-processing-hook for this. Thank you for the suggestion. My question would then be: how do I set the hook from within the file being exported? (And the answer is: apply Nicolas's suggestion, it worked.) Alan