[emacs] org: export html5, add htmlize for syntax highlighting
authorAmin Bandali <aminb@gnu.org>
Wed, 27 Jun 2018 04:25:58 +0000 (00:25 -0400)
committerAmin Bandali <aminb@gnu.org>
Wed, 27 Jun 2018 04:25:58 +0000 (00:25 -0400)
.gitmodules
init.org
lib/htmlize [new submodule]

index 28eced6..a307055 100644 (file)
@@ -79,6 +79,9 @@
 [submodule "hlint-refactor"]
        path = lib/hlint-refactor
        url = git@github.com:mpickering/hlint-refactor-mode.git
 [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
 [submodule "ivy"]
        path = lib/ivy
        url = git@github.com:abo-abo/swiper.git
index 04719f0..b4137ec 100644 (file)
--- 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
 #+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)
 (add-hook 'org-mode-hook 'org-indent-mode)
+(use-package htmlize)
 #+end_src
 
 *** [[https://magit.vc/][Magit]]
 #+end_src
 
 *** [[https://magit.vc/][Magit]]
diff --git a/lib/htmlize b/lib/htmlize
new file mode 160000 (submodule)
index 0000000..315a8f2
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 315a8f23cfd3e87642ff9e30ae3300c7a84244d5