Add integration with org-roam-bibtex

This commit is contained in:
TakeV 2023-02-05 00:21:57 -08:00
parent 7986ab473b
commit 28c3637479
Signed by: TakeV
GPG Key ID: A64F41345C7400AF
1 changed files with 25 additions and 1 deletions

View File

@ -43,7 +43,8 @@
(defconst org-noter-packages
'(org-pdftools
org-noter
org-noter-pdftools)
org-noter-pdftools
org-roam-bibtex)
"The list of Lisp packages required by the org-noter layer.
Each entry is either:
@ -85,3 +86,26 @@ Each entry is either:
:after org-noter
:config (with-eval-after-load 'pdf-annot
(add-hook 'pdf-annot-activate-handler-functions #'org-noter-pdftools-jump-to-note))))
(defun org-noter/post-init-org-roam-bibtex ()
(orb-preformat-keywords '("citekey" "title" "url" "author-or-editor" "keywords" "file"))
(orb-process-file-keyword t)
(orb-file-field-extensions '("pdf" "epub" "html"))
(orb-templates
'(("r" "ref" plain (function org-roam-capture--get-point)
""
:file-name "${citekey}"
:head "#+TITLE: ${citekey}: ${title}
#+ROAM_KEY: ${ref}
- tags ::
- keywords :: ${keywords}
* ${title}
:PROPERTIES:
:Custom_ID: ${citekey}
:URL: ${url}
:AUTHOR: ${author-or-editor}
:NOTER_DOCUMENT: ${file}
:NOTER_PAGE:
:END:"))))