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