From 5c2eaaf178d175d275109c7b23451f8a0771c574 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 27 Jun 2018 00:25:58 -0400 Subject: [emacs] org: export html5, add htmlize for syntax highlighting --- .gitmodules | 3 +++ init.org | 5 ++++- lib/htmlize | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 160000 lib/htmlize 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 -- cgit v1.2.3-60-g2f50