diff --git a/.gitignore b/.gitignore index 6fd5ea4..26cd290 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ auto-save-list /transient/ /projects /url/ +/org-roam.db diff --git a/ensure.el b/ensure.el index 59ae757..ac3bd85 100644 --- a/ensure.el +++ b/ensure.el @@ -27,6 +27,8 @@ nix-modeline nix-ts-mode nixos-options + org-journal + org-roam paredit pelican-mode projectile diff --git a/init.el b/init.el index 7522f28..bcdf4f7 100644 --- a/init.el +++ b/init.el @@ -263,9 +263,9 @@ present on disk." '(auto-complete c-eldoc ellama elpy exec-path-from-shell geiser go-mode gruvbox-theme keychain-environment lua-mode luarocks magit markdown-mode mwim nix-mode - nix-modeline nix-ts-mode nixos-options paredit - pelican-mode projectile racket-mode scpaste slime - undo-tree))) + nix-modeline nix-ts-mode nixos-options org-roam + paredit pelican-mode projectile racket-mode scpaste + slime undo-tree))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/publish.el b/publish.el index 607c3f9..6c2e624 100644 --- a/publish.el +++ b/publish.el @@ -3,6 +3,10 @@ ;;; ;;; publishing my notes docs +(require 'org-roam) +(setq org-roam-directory (file-truename "~/org/roam")) +(org-roam-db-autosync-mode) + (defvar *org-remote-site* "/ssh:web.metacircular.net:/srv/www/metacircular/" "Where should org-mode files be published?") (require 'ox-publish) @@ -38,7 +42,7 @@ :html-head-include-scripts nil :html-html5-fancy t :html-link-home "/" - :html-link-up "../" + :html-link-up "/e/" :html-postamble t :publishing-directory "~/org/publish/e/" :publishing-function org-html-publish-to-html @@ -57,7 +61,7 @@ :html-head-include-scripts nil :html-html5-fancy t :html-link-home "/" - :html-link-up "../" + :html-link-up "/p/" :publishing-directory "~/org/publish/p/" :publishing-function org-html-publish-to-html :auto-sitemap t @@ -131,7 +135,7 @@ ;;; publish all the orgs. (global-set-key (kbd "C-c o") (lambda () (interactive) - (org-publish-all t nil))) + (org-publish-project "org"))) ;;; upload the publish directory. (global-set-key (kbd "C-c u")