[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] #+INCLUDE: in a #+MACRO:
From: |
Sebastien Vauban |
Subject: |
Re: [O] #+INCLUDE: in a #+MACRO: |
Date: |
Fri, 14 Jun 2013 23:42:32 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt) |
Hi John,
John Tait wrote:
> I'm trying to create a macro like this:
>
> #+MACRO: contactme #+INCLUDE: "./chunks/contactme.org"
>
> This would enable me to construct a website in a modular way.
>
> (The second level of abstraction, i.e. not using a direct include, would
> make maintaining the website much easier because if I rearrange the site I
> only have to worry about the macro reference.)
>
> I can't get it to work however. Is there a way to do this?
The execution order for the steps done on the buffer being exported is:
...
2. Include files through `#+INCLUDE:' keywords
3. Expand macros
...
So, I don't think that's possible -- at least no without changing the function
`org-export-as'.
Best regards,
Seb
--
Sebastien Vauban