Require oc-biblatex' and oc-csl' only when needed

This commit is contained in:
Gerard Vermeulen 2022-11-05 16:45:32 +01:00
parent 0e94518c32
commit 79d60eab4c

View File

@ -2306,8 +2306,9 @@ configuration.
#+begin_src emacs-lisp
(with-eval-after-load 'oc
;; Org-9.5 needs the requirements, but Org-9.6 does not.
(require 'oc-biblatex)
(require 'oc-csl))
(when (version< (org-version) "9.5.99")
(require 'oc-biblatex)
(require 'oc-csl)))
(with-eval-after-load 'org
(define-key org-mode-map (kbd "C-c b") #'org-cite-insert))