Hi Rasmus,

Rasmus <ras...@gmx.us> writes:

> This is why you would want to use a filter rather than a hook
> (i.e. you only want to retain the Org structure when exporting).
> Here's a slightly modified version of the filter I use.

Thank you for this suggestion.

I went back to my original problem (how to neatly fold away some setup
code at the beginning of the file) and I'm now using a solution that
seems to work well.

- The setup heading has a 'ignoreheading' tag (there is no longer
  a 'noexport' tag).
- Code blocks inside have a ':exports none' header.
- The next block where I want to add some heading-less text also has
  a 'ignoreheading' tag.
- I'm using the "before-parsing" hook to get rid of these headings.

Thanks again,

Alan


Reply via email to