configs/emacs: add org-transclusion and make an export for roam stuff

This commit is contained in:
Aaron Bieber 2024-09-11 10:38:20 -06:00
parent ba7ba18e6b
commit 23a5a21fff
No known key found for this signature in database

View File

@ -391,130 +391,146 @@ can't quit!
I publish some of my notes [[https://suah.dev/p][on suah.dev/p]]. Also some recipes. I publish some of my notes [[https://suah.dev/p][on suah.dev/p]]. Also some recipes.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-export-with-broken-links t)
(setq my-org-publish-alist (setq my-org-publish-alist
'(("bolddaemon" :components ("bolddaemon-web" "bolddaemon-static")) '(("bolddaemon" :components ("bolddaemon-web" "bolddaemon-static"))
("notes" :components ("org-notes" "notes-static" "notes-rss")) ("notes" :components ("org-notes" "notes-static" "notes-rss"))
("deftly" :components ("deftly-blog" "deftly-static")) ("exo" :components ("org-roam" "org-roam-static" "org-roam-rss"))
("ohmyksh" :components ("ohmy-web" "ohmy-static")) ("deftly" :components ("deftly-blog" "deftly-static"))
("org-notes" ("ohmyksh" :components ("ohmy-web" "ohmy-static"))
:auto-preamble t ("org-roam"
:auto-sitemap t :publishing-directory "/tmp/exo"
:headline-levels 4 :publishing-function org-html-publish-to-html
:publishing-directory "/ssh:suah.dev:/var/www/suah.dev/p/" :base-directory "~/org-roam")
:publishing-function org-html-publish-to-html ("org-roam-static"
:recursive t :base-directory "~/org-roam"
:section-numbers nil :publishing-directory "/tmp/exo"
:html-head "<link rel=\"stylesheet\" href=\"https://suah.dev/p/css/stylesheet.css\" type=\"text/css\" />" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|svg"
:html-link-home "http://suah.dev/p/" :publishing-function org-publish-attachment)
:html-link-up "../" ("org-roam-rss"
:style-include-default nil :publishing-directory "/tmp/exo"
:sitemap-filename "index.org" :publishing-function org-rss-publish-to-rss
:sitemap-title "Notes" :rss-extension "xml"
:with-title t :base-directory "~/org-roam")
:author-info nil ("org-notes"
:creator-info nil :auto-preamble t
:base-directory "~/org/notes") :auto-sitemap t
("deftly-blog" :headline-levels 4
:auto-preamble t :publishing-directory "/ssh:suah.dev:/var/www/suah.dev/p/"
:auto-sitemap t :publishing-function org-html-publish-to-html
:headline-levels 1 :recursive t
:publishing-directory "/ssh:suah.dev:/var/www/deftly.net/new/" :section-numbers nil
:publishing-function org-html-publish-to-html :html-head "<link rel=\"stylesheet\" href=\"https://suah.dev/p/css/stylesheet.css\" type=\"text/css\" />"
:recursive t :html-link-home "http://suah.dev/p/"
:section-numbers nil :html-link-up "../"
:html-head "<link rel=\"stylesheet\" href=\"https://deftly.net/new/css/stylesheet.css\" type=\"text/css\" />" :style-include-default nil
:html-link-home "http://deftly.net/new" :sitemap-filename "index.org"
:html-link-up "../" :sitemap-title "Notes"
:style-include-default nil :with-title t
:sitemap-title "Deftly.net" :author-info nil
:with-title t :creator-info nil
:author-info t :base-directory "~/org/notes")
:creator-info nil ("deftly-blog"
:base-directory "~/org/deftly") :auto-preamble t
("ohmy-web" :auto-sitemap t
:auto-preamble t :headline-levels 1
:auto-sitemap nil :publishing-directory "/ssh:suah.dev:/var/www/deftly.net/new/"
:headline-levels 2 :publishing-function org-html-publish-to-html
:publishing-directory "/ssh:suah.dev:/var/www/deftly.net/ohmyksh/" :recursive t
:publishing-function org-html-publish-to-html :section-numbers nil
:recursive t :html-head "<link rel=\"stylesheet\" href=\"https://deftly.net/new/css/stylesheet.css\" type=\"text/css\" />"
:section-numbers nil :html-link-home "http://deftly.net/new"
:html-head "<link rel=\"stylesheet\" href=\"https://deftly.net/ohmyksh/css/stylesheet.css\" type=\"text/css\" />" :html-link-up "../"
:html-link-home "http://deftly.net/ohmyksh" :style-include-default nil
:html-link-up "../" :sitemap-title "Deftly.net"
:style-include-default nil :with-title t
:with-title t :author-info t
:author-info t :creator-info nil
:creator-info nil :base-directory "~/org/deftly")
:base-directory "~/src/ohmyksh") ("ohmy-web"
("notes-static" :auto-preamble t
:base-directory "~/org/notes" :auto-sitemap nil
:publishing-directory "/ssh:suah.dev:/var/www/suah.dev/p/" :headline-levels 2
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|svg" :publishing-directory "/ssh:suah.dev:/var/www/deftly.net/ohmyksh/"
:recursive t :publishing-function org-html-publish-to-html
:publishing-function org-publish-attachment) :recursive t
("deftly-static" :section-numbers nil
:base-directory "~/org/deftly" :html-head "<link rel=\"stylesheet\" href=\"https://deftly.net/ohmyksh/css/stylesheet.css\" type=\"text/css\" />"
:publishing-directory "/ssh:suah.dev:/var/www/deftly.net/new/" :html-link-home "http://deftly.net/ohmyksh"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg" :html-link-up "../"
:recursive t :style-include-default nil
:publishing-function org-publish-attachment) :with-title t
("ohmy-static" :author-info t
:base-directory "~/src/ohmyksh" :creator-info nil
:publishing-directory "/ssh:suah.dev:/var/www/deftly.net/ohmyksh/" :base-directory "~/src/ohmyksh")
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg" ("notes-static"
:recursive t :base-directory "~/org/notes"
:publishing-function org-publish-attachment) :publishing-directory "/ssh:suah.dev:/var/www/suah.dev/p/"
("notes-rss" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|svg"
:publishing-directory "/ssh:suah.dev:/var/www/suah.dev/p/" :recursive t
:publishing-function org-rss-publish-to-rss :publishing-function org-publish-attachment)
:recursive t ("deftly-static"
:rss-extension "xml" :base-directory "~/org/deftly"
:section-numbers nil :publishing-directory "/ssh:suah.dev:/var/www/deftly.net/new/"
:exclude ".*" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg"
:include ("index.org") :recursive t
:table-of-contents nil :publishing-function org-publish-attachment)
:base-directory "~/org/notes") ("ohmy-static"
("recipes" :base-directory "~/src/ohmyksh"
:auto-preamble t :publishing-directory "/ssh:suah.dev:/var/www/deftly.net/ohmyksh/"
:auto-sitemap t :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg"
:headline-levels 4 :recursive t
:publishing-directory "/ssh:suah.dev:/var/www/suah.dev/recipes/" :publishing-function org-publish-attachment)
:publishing-function org-html-publish-to-html ("notes-rss"
:recursive t :publishing-directory "/ssh:suah.dev:/var/www/suah.dev/p/"
:section-numbers nil :publishing-function org-rss-publish-to-rss
:html-head "<link rel=\"stylesheet\" href=\"https://suah.dev/p/css/stylesheet.css\" type=\"text/css\" />" :recursive t
:html-link-home "http://suah.dev/recipes/" :rss-extension "xml"
:html-link-up "../" :section-numbers nil
:style-include-default nil :exclude ".*"
:sitemap-filename "index.org" :include ("index.org")
:sitemap-title "Recipes" :table-of-contents nil
:with-title t :base-directory "~/org/notes")
:author-info nil ("recipes"
:creator-info nil :auto-preamble t
:base-directory "~/org/recipes") :auto-sitemap t
:headline-levels 4
:publishing-directory "/ssh:suah.dev:/var/www/suah.dev/recipes/"
:publishing-function org-html-publish-to-html
:recursive t
:section-numbers nil
:html-head "<link rel=\"stylesheet\" href=\"https://suah.dev/p/css/stylesheet.css\" type=\"text/css\" />"
:html-link-home "http://suah.dev/recipes/"
:html-link-up "../"
:style-include-default nil
:sitemap-filename "index.org"
:sitemap-title "Recipes"
:with-title t
:author-info nil
:creator-info nil
:base-directory "~/org/recipes")
("bolddaemon-web" ("bolddaemon-web"
:auto-preamble t :auto-preamble t
:auto-sitemap t :auto-sitemap t
:headline-levels 4 :headline-levels 4
:publishing-directory "/ssh:suah.dev:/var/www/bolddaemon.com/" :publishing-directory "/ssh:suah.dev:/var/www/bolddaemon.com/"
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:recursive t :recursive t
:section-numbers nil :section-numbers nil
:html-link-home "http://bolddaemon.com" :html-link-home "http://bolddaemon.com"
:html-link-up "../" :html-link-up "../"
:style-include-default nil :style-include-default nil
:with-title t :with-title t
:author-info nil :author-info nil
:creator-info nil :creator-info nil
:base-directory "~/org/bold.daemon") :base-directory "~/org/bold.daemon")
("bolddaemon-static" ("bolddaemon-static"
:base-directory "~/org/bold.daemon" :base-directory "~/org/bold.daemon"
:publishing-directory "/ssh:suah.dev:/var/www/bolddaemon.com/" :publishing-directory "/ssh:suah.dev:/var/www/bolddaemon.com/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg"
:recursive t :recursive t
:publishing-function org-publish-attachment) :publishing-function org-publish-attachment)
)) ))
#+end_src #+end_src
** Capture templates ** Capture templates
@ -620,17 +636,24 @@ Custom agenda commands for various things.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-roam (use-package org-roam
:custom :after org
(org-roam-directory (file-truename "~/org-roam/")) :custom
:bind (("C-c n l" . org-roam-buffer-toggle) (org-roam-directory (file-truename "~/org-roam/"))
("C-c n f" . org-roam-node-find) :bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n g" . org-roam-graph) ("C-c n f" . org-roam-node-find)
("C-c n i" . org-roam-node-insert) ("C-c n g" . org-roam-graph)
("C-c n c" . org-roam-capture) ("C-c n i" . org-roam-node-insert)
("C-c n j" . org-roam-dailies-capture-today)) ("C-c n c" . org-roam-capture)
:config ("C-c n j" . org-roam-dailies-capture-today))
(setq org-roam-completion-everywhere t) :config
(require 'org-roam-protocol)) (setq org-roam-completion-everywhere t)
(require 'org-roam-protocol))
#+end_src
Extending org with the ability to transclude makes for a powerhouse!
#+begin_src emacs-lisp
(use-package org-transclusion
:after org)
#+end_src #+end_src
* gnus * gnus