diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-01-05 01:19:44 -0700 |
|---|---|---|
| committer | bdunahu <bdunahu@operationnull.com> | 2026-01-05 01:19:44 -0700 |
| commit | f0c853e911c5693af5f3f3c3568103bc501efccf (patch) | |
| tree | 2118ef9abdfc3f381c213b5e2de96c7c1e8cd63e /kolwynia | |
| parent | 353e64abc90dec865e24cf1b693497df3c7dd568 (diff) | |
emacs oc config do not complain if bib dir is missing
Diffstat (limited to 'kolwynia')
| -rw-r--r-- | kolwynia/home/bdunahu/files/.config/emacs/modules/bd--org.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kolwynia/home/bdunahu/files/.config/emacs/modules/bd--org.el b/kolwynia/home/bdunahu/files/.config/emacs/modules/bd--org.el index b88a72b..1d6f7fc 100644 --- a/kolwynia/home/bdunahu/files/.config/emacs/modules/bd--org.el +++ b/kolwynia/home/bdunahu/files/.config/emacs/modules/bd--org.el @@ -131,12 +131,14 @@ (use-package oc :config - (setopt org-cite-global-bibliography - (directory-files-recursively - (concat (xdg-user-dir "DOCUMENTS") "/bib/") - ".*\\.bib$") - org-cite-export-processors - '((latex biblatex)))) + (let ((bib-path (concat (xdg-user-dir "DOCUMENTS") "/bib/"))) + (when (file-directory-p bib-path) + (setopt org-cite-global-bibliography + (directory-files-recursively + (concat (xdg-user-dir "DOCUMENTS") "/bib/") + ".*\\.bib$") + org-cite-export-processors + '((latex biblatex)))))) (use-package org-agenda :bind |
