Set citar-bib to ~/Zotero/libarary.{bib,json}

This commit is contained in:
TEC 2022-01-31 17:39:36 +08:00
parent e8aaf2140b
commit 4122157548
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 11 additions and 1 deletions

View File

@ -5566,7 +5566,17 @@ To improve =org-cite=.
#+begin_src emacs-lisp :noweb-ref none :tangle yes
(use-package! citar
:when (featurep! :completion vertico))
:when (featurep! :completion vertico)
:config
(setq citar-bibliography
(let ((libfile-search-names '("library.json" "Library.json" "library.bib" "Library.bib"))
(libfile-dir "~/Zotero")
paths)
(dolist (libfile libfile-search-names)
(when (and (not paths)
(file-exists-p (expand-file-name libfile libfile-dir)))
(setq paths (list (expand-file-name libfile libfile-dir)))))
paths)))
(use-package! citeproc
:defer t)