From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Add a hook with #+BIND? Date: Wed, 17 Nov 2010 13:28:30 +0100 Message-ID: <4CE3CA6E.4070108@christianmoe.com> References: <83eial4my9.fsf@yahoo.it> <4CE3C0C4.8020503@christianmoe.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37401 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIh5p-0005S1-BZ for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 07:26:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIh5o-00032I-Dk for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 07:26:29 -0500 Received: from mars.hitrost.net ([91.185.193.39]:56924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIh5o-00031o-6v for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 07:26:28 -0500 Received: from lk.92.63.17.213.dc.cable.static.lj-kabel.net ([92.63.17.213] helo=Celebrian.local) by mars.hitrost.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1PIh5l-0000gt-SV for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 13:26:25 +0100 In-Reply-To: <4CE3C0C4.8020503@christianmoe.com> 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 Cc: emacs-orgmode@gnu.org Hi, Can I use #+BIND to add an exporter hook for the current document? For instance, I have a function to postprocess HTML exports for blog posts. I could turn it on for all HTML exports with : (org-add-hook 'org-export-html-final-hook 'my-org-postprocess-blog-post) But that's not what I want, I want to turn it on for certain documents only. Can I do that with the #+BIND option, and how do I write it? For reference, I've tried the following without success. #+BIND: org-export-html-final-hook (my-org-postprocess-blog-post) #+BIND: org-export-html-final-hook '(my-org-postprocess-blog-post) Yours, Christian