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.
This commit is contained in:
@@ -25,4 +25,11 @@
|
|||||||
nil nil #'equal)
|
nil nil #'equal)
|
||||||
server))))
|
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
|
;;; config-linux.el ends here
|
||||||
|
|||||||
@@ -216,4 +216,10 @@ Returns answer with org-roam links to sources."
|
|||||||
'(elixir-ts-mode
|
'(elixir-ts-mode
|
||||||
. ("sh" "/Users/willem/.elixir-ls/release/language_server.sh"))))
|
. ("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
|
;;; config-mac.el ends here
|
||||||
|
|||||||
@@ -56,6 +56,14 @@
|
|||||||
(require 'qwan-blog)
|
(require 'qwan-blog)
|
||||||
(require 'qwan-refactor)
|
(require 'qwan-refactor)
|
||||||
(require 'firehose-blog)
|
(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
|
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||||
|
|||||||
Reference in New Issue
Block a user