Skip to content

Commit

Permalink
Use org-directory in bibtex-completion variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
vonavi committed Apr 15, 2024
1 parent 7d8c403 commit 3cbbfe2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/config/bibtex.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

(use-package bibtex
:ensure nil
:after org
:init
;; Set bibtex-completion variables
(setq bibtex-completion-bibliography '("~/org/bibliography/references.bib")
bibtex-completion-library-path '("~/org/bibliography/bibtex-pdfs/")))
(setq bibtex-completion-bibliography
`(,(concat (file-name-as-directory org-directory)
"bibliography/references.bib"))
bibtex-completion-library-path
`(,(concat (file-name-as-directory org-directory)
"bibliography/bibtex-pdfs/"))))

(provide 'config/bibtex)
;;; bibtex.el ends here

0 comments on commit 3cbbfe2

Please sign in to comment.