emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Add a hook with #+BIND?


From: Christian Moe
Subject: [Orgmode] Add a hook with #+BIND?
Date: Wed, 17 Nov 2010 13:28:30 +0100
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]