diff --git a/init.el b/init.el index fbac672..cdfcbba 100644 --- a/init.el +++ b/init.el @@ -121,7 +121,8 @@ present on disk." (localize-and-filter '("bin" ".local/bin" "go/bin" "/usr/local/bin" - "/opt/homebrew/bin"))) + "/opt/homebrew/bin" + "/run/current-system/sw/bin"))) (require 'scpaste) (setq scpaste-http-destination "https://p.kyleisom.net" diff --git a/org.el b/org.el index 3fe408d..f576be6 100644 --- a/org.el +++ b/org.el @@ -72,7 +72,15 @@ :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") :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" "#+title: ${title}\n#+date: %(get-current-org-date-timestamp)\n#+options: toc:nil num:nil\n#+filetags: project\n\n") :unnarrowed t)))