emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Using link abbrevations for EXPORT_FILE_NAME ?


From: Stelian Iancu
Subject: Re: [O] Using link abbrevations for EXPORT_FILE_NAME ?
Date: Mon, 9 Nov 2015 13:53:40 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 08/11/15 20:11, Nicolas Goaziou wrote:
Hello,

AW <address@hidden> writes:

on orgmode 8.3.2 I've got a large org-file. Offen, I need to export a subtree
like this:

-----------------
* Subtree to be exported
:PROPERTIES:
:EXPORT_FILE_NAME: /PATH/TO/FOLDER/filename
:EXPORT_TITLE:
:END:

foo

-----------------

I'd like to save the exported file in a project folder, as you can see in
EXPORT_FILE_NAME .

It would be very helpful to use link abbrevations in EXPORT_FILE_NAME :

(setq org-link-abbrev-alist
    '(("anglisky" . "~/Path/whereever/%s")))

in .emacs and write:

-----------------
* Subtree to be exported
:PROPERTIES:
:EXPORT_FILE_NAME: anglisky:filename
:EXPORT_TITLE:
:END:

foo

-----------------

Possible? Feature Request?

Not possible. Also, link syntax sounds awkward because most links
wouldn't make sense there.

What about introducing a new property:

   :EXPORT_FILE_DIRECTORY:

When set, e.g. to "dir", assuming EXPORT_FILE_NAME is set to "foo/file",
export file name becomes "dir/file".

Since you can set it per subtree or document, I think it would help in
your situation.

WDYT?


Regards,


Hi,

+1 on this. I wanted this as well a while back and didn't know how to do it (or whether it's possible or not) so I gave up.

S.



reply via email to

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