[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] export tree
From: |
Andreas Leha |
Subject: |
Re: [O] export tree |
Date: |
Sun, 20 May 2012 00:02:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Hi Nick,
>> Hi all,
>>
>> what is the best way to export the whole current tree (starting from the
>> top-level headline)?
[...]
>
> Write a function and bind it to a key - something like this perhaps:
>
> (defun ah-export-current-top-level-tree ()
> (interactive)
> (save-excursion
> (outline-up-heading (org-current-level))
> (let ((org-export-initial-scope 'subtree))
> (org-export))))
>
> Nick
Thank a lot. Works great!
Cheers,
Andreas