emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Stefan Vollmar <vollmar@nf.mpg.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: HTML export with one key
Date: Sat, 13 Jun 2009 22:10:45 +0200	[thread overview]
Message-ID: <87prd7c2t6.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <87tz2jc3kb.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Sat, 13 Jun 2009 21:54:28 +0200")

Sebastian Rose <sebastian_rose@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

      reply	other threads:[~2009-06-13 20:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-13 14:31 HTML export with one key Stefan Vollmar
2009-06-13 19:54 ` Sebastian Rose
2009-06-13 20:10   ` Sebastian Rose [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87prd7c2t6.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=vollmar@nf.mpg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).