From: Amin Bandali Date: Wed, 27 Jun 2018 04:25:58 +0000 (-0400) Subject: [emacs] org: export html5, add htmlize for syntax highlighting X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/5c2eaaf178d175d275109c7b23451f8a0771c574?ds=inline;hp=20ead030f0d3c385710d0a8004e40fb4705e1ece [emacs] org: export html5, add htmlize for syntax highlighting --- diff --git a/.gitmodules b/.gitmodules index 28eced6..a307055 100644 --- a/.gitmodules +++ b/.gitmodules @@ -79,6 +79,9 @@ [submodule "hlint-refactor"] path = lib/hlint-refactor url = git@github.com:mpickering/hlint-refactor-mode.git +[submodule "htmlize"] + path = lib/htmlize + url = git@github.com:hniksic/emacs-htmlize.git [submodule "ivy"] path = lib/ivy url = git@github.com:abo-abo/swiper.git diff --git a/init.org b/init.org index 04719f0..b4137ec 100644 --- a/init.org +++ b/init.org @@ -876,8 +876,11 @@ In short, my favourite way of life. #+begin_src emacs-lisp (setq org-src-tab-acts-natively t org-src-preserve-indentation nil - org-edit-src-content-indentation 0) + org-edit-src-content-indentation 0 + org-html-doctype "html5" + org-html-html5-fancy t) (add-hook 'org-mode-hook 'org-indent-mode) +(use-package htmlize) #+end_src *** [[https://magit.vc/][Magit]] diff --git a/lib/htmlize b/lib/htmlize new file mode 160000 index 0000000..315a8f2 --- /dev/null +++ b/lib/htmlize @@ -0,0 +1 @@ +Subproject commit 315a8f23cfd3e87642ff9e30ae3300c7a84244d5