diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2020-04-21 18:49:26 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2020-04-21 18:49:26 +0200 |
| commit | d4b1408e218f81c3e97848cacb578474877f66db (patch) | |
| tree | c47744fa7a567281d757a28d4c5b50fca293574c | |
| parent | 7767a02da5a5d02b9021595d28f4bb0f3e4b3de5 (diff) | |
| download | dotfiles-d4b1408e218f81c3e97848cacb578474877f66db.tar.gz dotfiles-d4b1408e218f81c3e97848cacb578474877f66db.zip | |
emacs: fixed html generation
Apparently soria's `soria-theme-purple-identifiers' does not behave correctly
with the HTML exported of org-mode. This took me way longer to figure out that
I'd like to admit...
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | .emacs.d/init.org | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 92978c1..f39e64d 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1,6 +1,8 @@ #+TITLE: mssola's GNU Emacs configuration #+AUTHOR: Miquel Sabaté Solà #+EMAIL: mikisabate@gmail.com +#+HTML_HEAD: <link rel="stylesheet" href="http://jo.mssola.com/static/style.css" type="text/css" /> +#+HTML_HEAD: <link rel="stylesheet" href="http://jo.mssola.com/static/org.css" type="text/css" /> #+BABEL: :cache yes #+PROPERTY: header-args :tangle ~/.emacs.d/init.el @@ -94,7 +96,10 @@ on each change, the following function is provided: ;; Avoid running hooks when tangling (let ((prog-mode-hook nil)) (org-babel-tangle) - (byte-compile-file (concat user-emacs-directory "init.el"))))) + (byte-compile-file (concat user-emacs-directory "init.el")) + (remove-hook 'emacs-lisp-mode-hook 'soria-theme-purple-identifiers) + (org-html-export-to-html) + (add-hook 'emacs-lisp-mode-hook 'soria-theme-purple-identifiers)))) (add-hook 'after-save-hook 'tangle-init) #+END_SRC @@ -1693,7 +1698,8 @@ blocks to be converted into HTML as well, so we can properly colorize it). #+BEGIN_SRC elisp (use-package htmlize - :ensure t) + :ensure t + :after org) #+END_SRC And now let's set all the related settings. @@ -2483,7 +2489,7 @@ Yeah, I've been on the salty road... ** Others -The [[https;//github.com/mssola/soria][soria]] theme has the =soria-theme-purple-identifiers= hook. This hook instructs +The [[https://github.com/mssola/soria][soria]] theme has the =soria-theme-purple-identifiers= hook. This hook instructs the theme to use purple for identifiers instead of the default color. This is a remnant from my Vim times, and I only apply it to some languages (random criteria really). |
