Sebastian Rose <sebastian_r...@gmx.de> 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


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to