first pass at a roam config, thanks a-aron

This commit is contained in:
Kyle Isom 2025-04-25 07:29:41 -07:00
parent 433e177746
commit 088bb09d29
2 changed files with 30 additions and 11 deletions

View File

@ -259,13 +259,7 @@ present on disk."
'(custom-theme-directory "~/.emacs.d/themes") '(custom-theme-directory "~/.emacs.d/themes")
'(ellama-sessions-directory (cache-path "ellama-sessions")) '(ellama-sessions-directory (cache-path "ellama-sessions"))
'(global-font-lock-mode t) '(global-font-lock-mode t)
'(package-selected-packages '(package-selected-packages nil))
'(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 org-roam
paredit pelican-mode projectile racket-mode scpaste
slime undo-tree)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -3,9 +3,29 @@
;;; ;;;
;;; publishing my notes docs ;;; publishing my notes docs
(require 'org-roam) (use-package org-roam
(setq org-roam-directory (file-truename "~/org/roam")) :after org
(org-roam-db-autosync-mode) :custom
(org-roam-directory (file-truename "~/org/roam/"))
(org-roam-db-autosync-enable)
:bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph)
("C-c n r" . org-roam-ref-add)
("C-c n s" . org-roam-db-sync)
("C-c n t" . org-roam-tag-add)
("C-c n i" . org-roam-node-insert)
("C-c n c" . org-roam-capture)
("C-c n j" . org-roam-dailies-capture-today))
:config
(setq org-roam-completion-everywhere t)
(setq org-roam-node-display-template
(concat "${title:40} "
(propertize "${tags:40}" 'face 'org-tag)
"${file}"))
(require 'org-roam-protocol))
(defvar *org-remote-site* "/ssh:web.metacircular.net:/srv/www/metacircular/" (defvar *org-remote-site* "/ssh:web.metacircular.net:/srv/www/metacircular/"
"Where should org-mode files be published?") "Where should org-mode files be published?")
@ -37,6 +57,7 @@
;;; entries contains blog posts. Simple-as. ;;; entries contains blog posts. Simple-as.
("org-site-entries" ("org-site-entries"
:base-directory "~/org/entries/" :base-directory "~/org/entries/"
:exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
@ -56,6 +77,7 @@
;;; different directory accordingly. ;;; different directory accordingly.
("org-site-pages" ("org-site-pages"
:base-directory "~/org/pages/" :base-directory "~/org/pages/"
:exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
@ -72,6 +94,7 @@
;;; the site root is mostly the index page. ;;; the site root is mostly the index page.
("org-site-root" ("org-site-root"
:base-directory "~/org" :base-directory "~/org"
:exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />"
:html-head-include-default-style nil :html-head-include-default-style nil
@ -88,6 +111,7 @@
;;; is scoped appropriately to a separate directory. ;;; is scoped appropriately to a separate directory.
("org-site-notes" ("org-site-notes"
:base-directory "~/org/notes/" :base-directory "~/org/notes/"
:exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
@ -102,6 +126,7 @@
;;; obsidian, but emacs is life. ;;; obsidian, but emacs is life.
("org-site-roam" ("org-site-roam"
:base-directory "~/org/roam/" :base-directory "~/org/roam/"
:exclude "\.~undo-tree~$"
:html-doctype "html5" :html-doctype "html5"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />" :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/s/main.css\" />"
:html-head-include-scripts nil :html-head-include-scripts nil
@ -135,7 +160,7 @@
;;; publish all the orgs. ;;; publish all the orgs.
(global-set-key (kbd "C-c o") (global-set-key (kbd "C-c o")
(lambda () (interactive) (lambda () (interactive)
(org-publish-project "org"))) (org-publish-project "org" t)))
;;; upload the publish directory. ;;; upload the publish directory.
(global-set-key (kbd "C-c u") (global-set-key (kbd "C-c u")