update for book/paper capture, add nixos support

This commit is contained in:
Kyle Isom 2025-05-08 12:23:31 -07:00
parent ec68e7ddfb
commit 8bd0077efa
2 changed files with 11 additions and 2 deletions

View File

@ -121,7 +121,8 @@ present on disk."
(localize-and-filter (localize-and-filter
'("bin" ".local/bin" "go/bin" '("bin" ".local/bin" "go/bin"
"/usr/local/bin" "/usr/local/bin"
"/opt/homebrew/bin"))) "/opt/homebrew/bin"
"/run/current-system/sw/bin")))
(require 'scpaste) (require 'scpaste)
(setq scpaste-http-destination "https://p.kyleisom.net" (setq scpaste-http-destination "https://p.kyleisom.net"

10
org.el
View File

@ -72,7 +72,15 @@
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags: article:\n\n") "#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags: article:\n\n")
:unnarrowed t) :unnarrowed t)
("p" "project" plain "- Repo: [[%^{Url}][%^{title}]]\n\nOne sentence summary.\n\n** Tasks [/]" ("b" "book" plain "- Title: %^{Title}\n- Author: /%^{Author}/\n- Year: /%^{Year}/\n\n* Highlights / Notes\n"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags: book:\n\n")
:unnarrowed t)
("p" "paper" plain "Cite: [cite:%&{citekey}]\n- Title: %^{Title}\n- Author: /%^{Author}/\n- Year: /%^{Year}/\n\n* Highlights / Notes\n"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+date: %U\n#+options: toc:nil num:nil\n#+filetags: book:\n\n#+print_bibliography:\n\n#+cit_export: csl ../static/csl/ieee.csl\n#+bibliography: ../static/references.bib")
:unnarrowed t)
("j" "project" plain "- Repo: [[%^{Url}][%^{title}]]\n\nOne sentence summary.\n\n** Tasks [/]"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+date: %(get-current-org-date-timestamp)\n#+options: toc:nil num:nil\n#+filetags: project\n\n") "#+title: ${title}\n#+date: %(get-current-org-date-timestamp)\n#+options: toc:nil num:nil\n#+filetags: project\n\n")
:unnarrowed t))) :unnarrowed t)))