Remove setting a global bibliography using citar/org-cite

This commit is contained in:
Evie Litherland-Smith 2025-01-16 17:58:31 +00:00
parent 9dc40b68d4
commit edb2a5854b

20
init.el
View file

@ -786,24 +786,12 @@
:hook :hook
(LaTeX-mode . citar-capf-setup) (LaTeX-mode . citar-capf-setup)
(org-mode . citar-capf-setup) (org-mode . citar-capf-setup)
:custom
(citar-bibliography
(list
(expand-file-name "citar/main.bib" org-directory)))
(citar-notes-paths
(list
(expand-file-name "citar/notes/" org-directory)))
(citar-library-paths
(list
(expand-file-name "~/Documents/library/")))
:config :config
(require 'org) (require 'org)
(require 'nerd-icons) (require 'nerd-icons)
(setopt org-cite-insert-processor 'citar (setopt org-cite-insert-processor 'citar
org-cite-follow-processor 'citar org-cite-follow-processor 'citar
org-cite-activate-processor 'citar) org-cite-activate-processor 'citar)
(dolist (bibfile citar-bibliography)
(add-to-list 'org-cite-global-bibliography bibfile))
(defvar citar-indicator-files-icons (defvar citar-indicator-files-icons
(citar-indicator-create (citar-indicator-create
:symbol (nerd-icons-octicon :symbol (nerd-icons-octicon
@ -1268,12 +1256,12 @@
(find-file org-default-notes-file)) (find-file org-default-notes-file))
(keymap-global-set "C-c w n" #'my/open-org-default-notes-file) (keymap-global-set "C-c w n" #'my/open-org-default-notes-file)
(defun my/open-global-bibliography () (defun my/open-citar-bibliography ()
"Open `org-cite-global-bibliography'." "Open `citar-bibliography'."
(interactive) (interactive)
(require 'citar) (require 'citar)
(find-file (car org-cite-global-bibliography))) (find-file (car citar-bibliography)))
(keymap-global-set "C-c w b" #'my/open-global-bibliography) (keymap-global-set "C-c w b" #'my/open-citar-bibliography)
(defun my/configure-theme () (defun my/configure-theme ()
"Load theme and configure some faces." "Load theme and configure some faces."