[Emacs] Get page generation faces from faces.css

This commit is contained in:
Ivan Malison 2016-12-28 16:54:10 -08:00
parent 40902a6090
commit 4b77e33273
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 3415 additions and 3403 deletions

File diff suppressed because it is too large Load Diff

View File

@ -29,4 +29,20 @@
(setq org-html-htmlize-output-type 'css)
(setq org-confirm-babel-evaluate nil)
(defun add-faces-css (exporter)
"Insert custom inline css to automatically set the
background of code to whatever theme I'm using's background"
(setq
org-html-head-extra
(concat
org-html-head-extra
(format "<style type=\"text/css\">\n%s</style>\n"
(with-temp-buffer
(insert-file-contents
(concat (file-name-directory load-file-name) "faces.css"))
(buffer-string))))))
(add-hook 'org-export-before-processing-hook 'add-faces-css)
(remove-hook 'org-export-before-processing-hook 'imalison:org-inline-css-hook)
(message (export-target readme-src))