htmlize fix

This commit is contained in:
Jacob Janzen 2024-04-12 15:42:32 -05:00
parent 3ff1a0f3f1
commit 2eb5e64c62
2 changed files with 10 additions and 1 deletions

View file

@ -7,7 +7,7 @@ sources:
- https://git.sr.ht/~jjanzen/dotfiles
tasks:
- build: |
emacs --batch --script ~/website/publish.el
emacs --batch -f package-initialize --script ~/website/publish.el
- package: |
cd ~/public_html/
tar -cvz . > ../site.tar.gz

View file

@ -1,3 +1,12 @@
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(setq package-load-list '((htmlize t)))
(package-initialize)
(unless (package-installed-p 'htmlize)
(package-refresh-contents)
(package-install 'htmlize))
(require 'org)
(require 'ox-html)
(setq org-publish-project-alist