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: Nicolas Goaziou
Subject: Re: [O] EXPORT_FILE_NAME property default to heading content?
Date: Sat, 02 Sep 2017 09:49:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Adam Porter <address@hidden> writes:

> 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.

I suggest to use a hook to add this property right before export, e.g.,
in `org-export-before-processing-hook'.

Regards,

-- 
Nicolas Goaziou



reply via email to

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