featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
56 lines
1.4 KiB
EmacsLisp
56 lines
1.4 KiB
EmacsLisp
;;; tools/biblio/config.el -*- lexical-binding: t; -*-
|
|
|
|
;;
|
|
;;; `org-cite'
|
|
|
|
(use-package! oc
|
|
:defer t
|
|
:config
|
|
(setq org-cite-global-bibliography
|
|
(ensure-list
|
|
(or (bound-and-true-p citar-bibliography)
|
|
(bound-and-true-p bibtex-completion-bibliography)))
|
|
;; Setup export processor; default csl/citeproc-el, with biblatex for
|
|
;; latex
|
|
org-cite-export-processors '((latex biblatex) (t csl))
|
|
org-support-shift-select t))
|
|
|
|
|
|
(use-package! citar
|
|
:when (modulep! :completion vertico)
|
|
:no-require
|
|
:config
|
|
(setq org-cite-insert-processor 'citar
|
|
org-cite-follow-processor 'citar
|
|
org-cite-activate-processor 'citar))
|
|
|
|
(use-package! citar-embark
|
|
:when (modulep! :completion vertico)
|
|
:after citar embark
|
|
:config (citar-embark-mode))
|
|
|
|
;; `org-cite' processors
|
|
(use-package! oc-biblatex :after oc)
|
|
(use-package! oc-csl :after oc)
|
|
(use-package! oc-natbib :after oc)
|
|
|
|
|
|
;;
|
|
;;; Third-party
|
|
|
|
(use-package! bibtex-completion
|
|
:when (or (modulep! :completion ivy)
|
|
(modulep! :completion helm))
|
|
:defer t
|
|
:config
|
|
(setq bibtex-completion-additional-search-fields '(keywords)
|
|
;; Tell bibtex-completion to look at the File field of the bibtex to
|
|
;; figure out which pdf to open:
|
|
bibtex-completion-pdf-field "file"))
|
|
|
|
|
|
(use-package! ivy-bibtex
|
|
:when (modulep! :completion ivy)
|
|
:defer t
|
|
:config
|
|
(add-to-list 'ivy-re-builders-alist '(ivy-bibtex . ivy--regex-plus)))
|