cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

ac04bbcb2db0079dcc2978c6fe652210f490d06b

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-03-23T16:10:07Z

fix emacs package paths for sr.ht build user
 .build.yml | 7 +++++++
 publish.el | 6 ++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/.build.yml b/.build.yml
index 98a9c58..b338234 100644
--- a/.build.yml
+++ b/.build.yml
@@ -20,6 +20,13 @@ tasks:
       curl -LsSf https://astral.sh/uv/install.sh | sh
       curl -sSfL https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64.tar.gz \
         | tar -xz -C ~/.local/bin minify
+      mkdir -p ~/.config/emacs/.local/straight/repos
+      git clone --depth 1 https://github.com/nicferrier/emacs-htmlize \
+        ~/.config/emacs/.local/straight/repos/htmlize
+      git clone --depth 1 https://github.com/emacs-weblorg/weblorg \
+        ~/.config/emacs/.local/straight/repos/weblorg
+      git clone --depth 1 https://github.com/emacs-weblorg/templatel \
+        ~/.config/emacs/.local/straight/repos/templatel
   - build: |
       source ~/.local/bin/env
       cd cleberg.net
diff --git a/publish.el b/publish.el
index 058d40c..cf11664 100644
--- a/publish.el
+++ b/publish.el
@@ -1,9 +1,7 @@
 ;;; -*- lexical-binding: t -*-
 ;; Allow for macOS (dev machine) & Linux (GitHub Actions) execution
-(defvar site-lisp-base 
-  (if (eq system-type 'darwin)
-      "~/.config/emacs/.local/straight/repos"               ; macOS path
-    "/home/linuxbrew/.config/emacs/.local/straight/repos")) ; CI/Linux path
+(defvar site-lisp-base
+  (expand-file-name "~/.config/emacs/.local/straight/repos"))
 
 ;; Explicitly load packages
 (add-to-list 'load-path (expand-file-name "htmlize" site-lisp-base))