From f687a1880613d95882eb8aa6c249c30719e968a2 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Tue, 3 Nov 2026 12:25:56 +0000 Subject: [PATCH] adopt: wire org-roam blog export; move its roots into the OS files config.el require org-roam-export-blog; SPC n r b / SPC n r j config-linux.el firehose ~/dev/elixir/firehose, jekyll ~/Documents/... config-mac.el firehose ~/dev/elixir/firehose, jekyll ~/MyDocuments/... Upstream sets both roots in the shared config.el. That does not survive the trip: the jekyll checkout is ~/MyDocuments/qwan/sites/qwaneu.github.io on macOS and ~/Documents/qwan/sites/qwaneu.github.io here (both verified to exist). So the roots go to the OS files and the shared half holds only the require and the bindings. Paths are home-relative, and config-local.el can override them if a checkout ever moves. Prefix SPC n r was unused in this config, so no rebinding. Verified in a scratch checkout: the imported suite passes 20/20 (emacs -Q --batch -L qwan -l qwan/org-roam-export-blog.el -l qwan/org-roam-export-blog-test.el -f ert-run-tests-batch-and-exit) and the existing firehose-blog suite still passes 16/16. --- config-linux.el | 7 +++++++ config-mac.el | 6 ++++++ config.el | 8 ++++++++ 3 files changed, 21 insertions(+) diff --git a/config-linux.el b/config-linux.el index 7acd19c..8f996cd 100644 --- a/config-linux.el +++ b/config-linux.el @@ -25,4 +25,11 @@ nil nil #'equal) server)))) +;; Blog export destinations. Upstream keeps these in the shared config.el as +;; ~/MyDocuments/..., which does not exist on this machine; here the jekyll +;; checkout lives under ~/Documents/.... Both are home-relative, so if a +;; checkout ever moves, override it in config-local.el. +(setq org-roam-export-blog-firehose-root "~/dev/elixir/firehose" + org-roam-export-jekyll-root "~/Documents/qwan/sites/qwaneu.github.io") + ;;; config-linux.el ends here diff --git a/config-mac.el b/config-mac.el index 14d4ad6..d548f35 100644 --- a/config-mac.el +++ b/config-mac.el @@ -216,4 +216,10 @@ Returns answer with org-roam links to sources." '(elixir-ts-mode . ("sh" "/Users/willem/.elixir-ls/release/language_server.sh")))) +;; Blog export destinations. Kept in this file rather than in the shared +;; config.el because the jekyll checkout sits under ~/MyDocuments on macOS and +;; under ~/Documents on Linux. Override in config-local.el if it moves. +(setq org-roam-export-blog-firehose-root "~/dev/elixir/firehose" + org-roam-export-jekyll-root "~/MyDocuments/qwan/sites/qwaneu.github.io") + ;;; config-mac.el ends here diff --git a/config.el b/config.el index f62c536..7e074a0 100644 --- a/config.el +++ b/config.el @@ -56,6 +56,14 @@ (require 'qwan-blog) (require 'qwan-refactor) (require 'firehose-blog) +(require 'org-roam-export-blog) + +;; Publishing: export an org-roam note into a blog post. The two candidate +;; destinations live in config-mac.el / config-linux.el, because their paths +;; differ per machine (and neither has anything to do with the OS as such). +(map! :leader + :desc "Export note as firehose blog post" "n r b" #'org-roam-export-blog + :desc "Export note as jekyll draft" "n r j" #'org-roam-export-jekyll) ;; Whenever you reconfigure a package, make sure to wrap your config in an