emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+INCLUDE: in a #+MACRO:
@ 2013-06-14 20:49 John Tait
  2013-06-14 21:42 ` Sebastien Vauban
  0 siblings, 1 reply; 2+ messages in thread
From: John Tait @ 2013-06-14 20:49 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

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?

John

[-- Attachment #2: Type: text/html, Size: 647 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: #+INCLUDE: in a #+MACRO:
  2013-06-14 20:49 #+INCLUDE: in a #+MACRO: John Tait
@ 2013-06-14 21:42 ` Sebastien Vauban
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Vauban @ 2013-06-14 21:42 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-14 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 20:49 #+INCLUDE: in a #+MACRO: John Tait
2013-06-14 21:42 ` Sebastien Vauban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).