summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2024-10-06 13:28:43 +0800
committernoa2024-10-06 13:28:43 +0800
commit1b6ba459142657cb4a3f8c7f1764055a85f7e5f2 (patch)
treeea793b72039b2638249327fd378456bedbb9caa6 /emacs
parent0d9c051130296fe4cce0b8580181221e0b63d0f1 (diff)
Add new bibliography configuration
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index a7f8522..116172f 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -735,3 +735,21 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
   ("<f12>" . howm-list-all)
   ("<C-f12>" . howm-create))
 (setopt howm-file-name-format "%Y-%m-%dT%H%M%S.md")
+;;; Bibliography management
+(use-package ebib
+  :ensure t
+  :custom
+  (ebib-bibtex-dialect 'biblatex)
+  (ebib-index-columns '(("Author/Editor" 40 t)
+                        ("Year" 6 t)
+                        ("Title" 50 t)
+                        ("Entry Key" 40 t)))
+  ;; Put notes in my markdown notes directory.  I still need to find a way to make ebib-notes-name-transform-function return the appropriate date-based filename format.
+  (ebib-notes-storage 'one-file-per-note)
+  (ebib-notes-directory "~/Documents/notes/References")
+  (ebib-notes-show-note-method 'all)
+  (ebib-notes-file-extension "md")
+  (ebib-notes-template "# %T\n\n%%?")
+  )
+
+;; https://juanjose.garciaripoll.com/blog/managing-bibliographies-from-emacs/index.html