From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: HTML export with one key Date: Sat, 13 Jun 2009 22:10:45 +0200 Message-ID: <87prd7c2t6.fsf@kassiopeya.MSHEIMNETZ> References: <655DB7F7-CCCD-48F3-B2C4-6D8D736934FF@nf.mpg.de> <87tz2jc3kb.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFZV5-0002vx-DG for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 16:06:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFZV0-0002vJ-QJ for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 16:06:51 -0400 Received: from [199.232.76.173] (port=56323 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFZV0-0002vG-Nj for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 16:06:46 -0400 Received: from mail.gmx.net ([213.165.64.20]:34325) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MFZV0-00033z-2L for emacs-orgmode@gnu.org; Sat, 13 Jun 2009 16:06:46 -0400 In-Reply-To: <87tz2jc3kb.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Sat, 13 Jun 2009 21:54:28 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Vollmar Cc: emacs-orgmode Sebastian Rose 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