Add integration with org-roam-bibtex
This commit is contained in:
parent
7986ab473b
commit
28c3637479
26
packages.el
26
packages.el
|
@ -43,7 +43,8 @@
|
||||||
(defconst org-noter-packages
|
(defconst org-noter-packages
|
||||||
'(org-pdftools
|
'(org-pdftools
|
||||||
org-noter
|
org-noter
|
||||||
org-noter-pdftools)
|
org-noter-pdftools
|
||||||
|
org-roam-bibtex)
|
||||||
"The list of Lisp packages required by the org-noter layer.
|
"The list of Lisp packages required by the org-noter layer.
|
||||||
|
|
||||||
Each entry is either:
|
Each entry is either:
|
||||||
|
@ -85,3 +86,26 @@ Each entry is either:
|
||||||
:after org-noter
|
:after org-noter
|
||||||
:config (with-eval-after-load 'pdf-annot
|
:config (with-eval-after-load 'pdf-annot
|
||||||
(add-hook 'pdf-annot-activate-handler-functions #'org-noter-pdftools-jump-to-note))))
|
(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:"))))
|
||||||
|
|
Loading…
Reference in New Issue