From 92483a112c55e5048dd992769787fe086d179ed5 Mon Sep 17 00:00:00 2001 From: Jeff Kreeftmeijer Date: Thu, 2 May 2024 22:59:35 +0200 Subject: [PATCH] Split off ox-modern.el Split off the modern Org export defaults, to be used in other projects. This section is still also included in the default.el file. --- emacs-configuration.org | 1 + ox-modern.el | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 ox-modern.el diff --git a/emacs-configuration.org b/emacs-configuration.org index 5eb6270..ee54710 100644 --- a/emacs-configuration.org +++ b/emacs-configuration.org @@ -1565,6 +1565,7 @@ Use ~org-html-container-element~ and ~org-html-divs~ to replace some of the stan To configure Org mode's HTML exporter to output HTML 5 with modern elements, set the following configuration. +#+headers: :tangle ox-modern.el #+headers: :noweb yes #+begin_src emacs-lisp (setq diff --git a/ox-modern.el b/ox-modern.el new file mode 100644 index 0000000..610544b --- /dev/null +++ b/ox-modern.el @@ -0,0 +1,12 @@ +(setq + org-export-with-smart-quotes t + org-export-with-entities nil + org-export-headline-levels 5 + org-export-with-toc nil + org-export-section-numbers nil + org-html-doctype "html5" + org-html-html5-fancy t + org-html-container-element "section" + org-html-divs '((preamble "header" "preamble") + (content "main" "content") + (postamble "footer" "postamble")))