Created
October 6, 2013 10:32
-
-
Save fasheng/6852271 to your computer and use it in GitHub Desktop.
Change theme before publishing, for getting a good html code highlight style through htmlize.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defadvice org-publish (around fsh-org-publish-advice | |
(project &optional force async) activate) | |
"Change theme before publishing, for getting a good html code highlight style through | |
htmlize." | |
(let ((thems custom-enabled-themes)) | |
(dolist (theme thems) | |
(disable-theme theme)) | |
(load-theme 'github) | |
ad-do-it | |
(disable-theme 'github) | |
(dolist (theme thems) | |
(enable-theme theme)) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment