[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] running some elisp code when exporting a given file
From: |
Myles English |
Subject: |
Re: [O] running some elisp code when exporting a given file |
Date: |
Thu, 05 Sep 2013 11:07:09 +0100 |
User-agent: |
mu4e 0.9.9.5-dev6; emacs 24.3.1 |
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.
"""
12.13 Advanced configuration
============================
Hooks
-----
Two hooks are run during the first steps of the export process. The
first one, 'org-export-before-processing-hook' is called before
expanding macros, Babel code and include keywords in the buffer. The
second one, 'org-export-before-parsing-hook', as its name suggests,
happens just before parsing the buffer. Their main use is for heavy
duties, that is duties involving structural modifications of the
document. For example, one may want to remove every headline in the
buffer during export.
"""
Myles