From ab3636ea0a7663b6bf894b6ef6429e2a832dc670 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 15 Jun 2024 18:26:43 +0000 Subject: Make nicer org html publish settings global --- emacs/init.el | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index 5c6c293..9d84400 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -273,6 +273,25 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (setopt org-agenda-current-time-string "◀── now ─────────────────────────────────────────────────") +;; Make org html export more pleasant by default +(setopt org-export-with-smart-quotes t) +(setopt org-export-with-entities nil) +(setopt org-export-headline-levels 5) +(setopt org-export-with-toc nil) +(setopt org-export-section-numbers nil) +(setopt org-html-doctype "html5") +(setopt org-html-html5-fancy t) +(setopt org-html-container-element "section") +(setopt org-html-divs '((preamble "header" "preamble") + (content "main" "content") + (postamble "footer" "postamble"))) +(setopt org-export-with-sub-superscripts t) +(setopt org-html-head-include-default-style nil + org-html-head-include-scripts nil + org-html-validation-link nil + org-html-indent t) + + (global-set-key (kbd "C-c c") #'org-capture) (global-set-key (kbd "C-c a") #'org-agenda) @@ -376,11 +395,7 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." :base-directory "/home/noa/data/share" :publishing-directory "/home/noa/projects/org-website" :base-extension "org" - - :section-numbers nil - :with-toc nil :with-drawers t - :with-sub-superscript t :html-link-home "/" :html-head "𰻝\">" :html-head-include-default-style nil -- cgit 1.4.1-2-gfad0