emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] HTML export with one key


From: Stefan Vollmar
Subject: [Orgmode] HTML export with one key
Date: Sat, 13 Jun 2009 16:31:57 +0200

Hello,

I am excited about using org-mode for generating HTML code, in fact, for one project I do that so frequently that I wanted to have a simple shortcut instead of having to press:
C-x C-s  C-c C-e b

I have tried (I know very little Lisp, sorry):

(defun my-org-export ()
"save, then export current org file to html, open in browser"
  (save-buffer)
  (interactive)
  (org-export-as-html-and-open t))

(global-set-key [(f2)] 'my-org-export)

... which does most of the job as intended. However, using this function yields HTML output which renders second- and third-level headlines into itemized lists whereas I want to have the default behaviour (1.1, 1.2, 1.2.3, etc).

Many thanks for any tips on how to improve this!
Warm regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: address@hidden   http://www.nf.mpg.de









reply via email to

[Prev in Thread] Current Thread [Next in Thread]