emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] EXPORT_FILE_NAME property default to heading content?


From: Adam Porter
Subject: Re: [O] EXPORT_FILE_NAME property default to heading content?
Date: Sat, 02 Sep 2017 02:41:03 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Tim Visher <address@hidden> writes:

> I like the filename of the exported file to always match the content of the 
> heading being exported. Is that possible? At the moment I basically duplicate 
> it
> like:
>
> ** Foo Heading
> :PROPERTIES:
> :EXPORT_FILE_NAME: Foo Heading
> :END:

I guess the simplest way would be to advise the org-export function with
a function that sets that property in the heading being exported.  You
could even add another advice that would clear the property afterward.

Otherwise, it probably wouldn't be too difficult to add an option to set
the export file name to the heading when exporting a subtree--but I've
never looked into the org-export code so maybe it would be.  :)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]