summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa2025-04-29 15:18:32 +0800
committernoa2025-04-29 15:18:32 +0800
commit83269bd2847122543e2fa2d2b892f95a7b1ba058 (patch)
tree9f911fa4bb92603a824635895424156d37059429
parenta419d67e161745542639244eba41a665740fa0b5 (diff)
Remove ebib and update citar paths
-rw-r--r--emacs/init.el29
1 files changed, 13 insertions, 16 deletions
diff --git a/emacs/init.el b/emacs/init.el
index b458dca..3dbf1f4 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -402,32 +402,29 @@
   (message-interactive t)
   (message-auto-save-directory "~/Documents/Library/Mail/drafts"))
 
+
 ;;; Bibliography management
-;; TODO: update this to fit with the new single org file notes system.  This way should be easier than the previous method i think.
-(use-package ebib
-  :defer t
-  :custom
-  (ebib-bibtex-dialect 'biblatex)
-  (ebib-index-columns '(("Author/Editor" 40 t)
-                        ("Year" 6 t)
-                        ("Title" 50 t)
-                        ("Entry Key" 40 t)))
-  (ebib-file-associations '(("pdf" . "xdg-open") ("ps" . "gv"))))
 
 (use-package citar
-  :defer t
+  :ensure t
   :commands (citar-insert-citation citar-open-files citar-open-notes)
   :custom
-  (citar-bibliography '("~/Documents/Library/References.bib"))
-  (citar-library-paths '("~/Documents/Library/Papers"))
-  (citar-notes-paths '("~/Documents/Notes"))
-  )
+  (citar-bibliography '("~/Documents/References.bib"))
+  (citar-library-paths '("~/Library/Papers"))
+  (citar-notes-paths '("~/Documents/Notes")))
+
 (use-package citar-org
-  :after oc
+  :after oc citar
   :custom
   (org-cite-insert-processor 'citar)
   (org-cite-follow-processor 'citar)
   (org-cite-activate-processor 'citar))
+(use-package citar-embark
+  :after citar embark
+  :ensure t
+  :custom
+  (citar-at-point-function 'embark-act)
+  :hook ((org-mode . citar-embark-mode)))
 
 (use-package bibtex
   :defer t