[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] HTML export with one key
From: |
Sebastian Rose |
Subject: |
Re: [Orgmode] HTML export with one key |
Date: |
Sat, 13 Jun 2009 22:10:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) |
Sebastian Rose <address@hidden> writes:
> Ah - got it:
>
> the docs of org-export-as-html-and-open says:
>
>
> "Export the outline as HTML and immediately open it with a browser.
> If there is an active region, export only the region.
> The prefix ARG specifies how many levels of the outline should become
> headlines. The default is 3. Lower levels will become bulleted lists."
>
>
> Means: exchange `t' with the headline level you need.
To use your global default for headline levels:
(defun my-org-export ()
"save, then export current org file to html, open in browser"
(save-buffer)
(interactive)
(org-export-as-html-and-open org-export-headline-levels))
(global-set-key [(f2)] 'my-org-export)
Regards
Sebastian