From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: #+INCLUDE: in a #+MACRO: Date: Fri, 14 Jun 2013 23:42:32 +0200 Message-ID: <86zjuse5dj.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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