From ac04bbcb2db0079dcc2978c6fe652210f490d06b Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 23 Mar 2026 11:10:07 -0500 Subject: 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)) -- cgit v1.2.3