Skip to content

Instantly share code, notes, and snippets.

@bdarcus
Last active August 13, 2021 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdarcus/d8add167feba6c07d72acd7ce722485f to your computer and use it in GitHub Desktop.
Save bdarcus/d8add167feba6c07d72acd7ce722485f to your computer and use it in GitHub Desktop.
setup for bibtex-actions and org-cite
(use-package bibtex-actions
:after (bibtex-completion)
:config
(setq bibtex-completion-bibliography '("~/references.bib")))
(use-package oc
:load-path "~/org-mode/lisp"
:after (org bibtex-completion)
:config
(setq org-cite-global-bibliography
;; Ensure we see the same bibliography files as org-cite.
(let ((paths bibtex-completion-bibliography))
;; Always return bibliography paths as a list.
(if (stringp paths) (list paths) paths))))
(use-package oc-basic
:load-path "~/org-mode/lisp"
:after (oc))
(use-package oc-bibtex-actions
:after (oc)
:demand t
:config
(setq org-cite-insert-processor 'oc-bibtex-actions
org-cite-follow-processor 'oc-bibtex-actions
org-cite-activate-processor 'basic))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment