From b180940e46407b5f41f1951487c02d3b586096e8 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 12 Mar 2017 21:42:18 +0800 Subject: [PATCH] change htmlize --- Makefile | 6 ++++-- my-publish.el | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 63252fc..c3aca65 100644 --- a/Makefile +++ b/Makefile @@ -20,17 +20,19 @@ update: git pull && $(emacs) -Q --script blog.el "~/www/html" "true" publish: - $(emacs) -Q --batch -l my-publish.el index.org \ + $(emacs) -Q --batch \ --eval $(INIT_PACKAGES) \ --eval '(setq debug-on-error t)' \ + -l my-publish.el index.org \ --eval '(blog-setup-project-alist "$(BLOGDIR)" "$(OUTDIR)")' \ --eval '(org-publish-current-project)' # test will force publishing all files in the porject test: - $(emacs) -Q --batch -l my-publish.el index.org \ + $(emacs) -Q --batch \ --eval $(INIT_PACKAGES) \ --eval '(setq debug-on-error t)' \ + -l my-publish.el index.org \ --eval '(blog-setup-project-alist "$(BLOGDIR)")' \ --eval '(org-publish-current-project t)' diff --git a/my-publish.el b/my-publish.el index 22e8b2e..7f0cd31 100644 --- a/my-publish.el +++ b/my-publish.el @@ -28,6 +28,7 @@ (require 'org) (require 'ox-publish) +(require 'htmlize) ;; To prevent inline-css when exporting html. will use external css (setq org-html-htmlize-output-type 'css) -- 2.11.0