Synchronise the citar and org-cite global bib

This commit is contained in:
TEC 2023-01-23 00:31:03 +08:00
parent aa4608f5b3
commit 0cd49e0c6e
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 4 additions and 3 deletions

View File

@ -8113,7 +8113,7 @@ with =citar=, and make the symbols a bit prettier.
#+begin_src emacs-lisp
(after! citar
(setq citar-bibliography
(setq org-cite-global-bibliography
(let ((libfile-search-names '("library.json" "Library.json" "library.bib" "Library.bib"))
(libfile-dir "~/Zotero")
paths)
@ -8121,8 +8121,9 @@ with =citar=, and make the symbols a bit prettier.
(when (and (not paths)
(file-exists-p (expand-file-name libfile libfile-dir)))
(setq paths (list (expand-file-name libfile libfile-dir)))))
paths))
(setq citar-symbols
paths)
citar-bibliography org-cite-global-bibliography
citar-symbols
`((file ,(all-the-icons-faicon "file-o" :face 'all-the-icons-green :v-adjust -0.1) . " ")
(note ,(all-the-icons-material "speaker_notes" :face 'all-the-icons-blue :v-adjust -0.3) . " ")
(link ,(all-the-icons-octicon "link" :face 'all-the-icons-orange :v-adjust 0.01) . " "))))