emacs: update Doom Emacs custom wiki module

We'll go full citar for our bibliography management.
This commit is contained in:
Gabriel Arazas 2023-08-23 19:36:55 +08:00
parent 8f54d19712
commit 89244b7ccd
2 changed files with 0 additions and 34 deletions

View File

@ -23,32 +23,6 @@
(other-window 1)
(org-roam-node-random))
(when (modulep! +biblio)
(defvar +wiki-references-filename "references.bib")
(defvar +wiki-bibliography-note-filename "references.org")
(defvar +wiki-bibliography-file (f-join +wiki-directory +wiki-references-filename))
(defvar +wiki-bibliography-note (f-join +wiki-directory +wiki-bibliography-note-filename))
(defun +wiki/biblio-setup ()
"Setup the variables for the wiki config."
(setq +wiki-bibliography-file (f-join +wiki-directory +wiki-references-filename)
+wiki-bibliography-note (f-join +wiki-directory +wiki-bibliography-note-filename)
org-cite-global-bibliography `(,+wiki-bibliography-file)
citar-bibliography `(,+wiki-bibliography-file)
citar-notes-paths `(,+wiki-directory)
citar-open-note-function 'orb-citar-edit-note
bibtex-completion-bibliography +wiki-bibliography-file
bibtex-completion-notes-path +wiki-directory))
(use-package! org-roam-bibtex
:after org-roam
:preface
:config
(+wiki/biblio-setup)))
(when (modulep! +anki)
(defvar +anki-cards-directory-name "cards")
(defvar +anki-cards-directory (f-join +wiki-directory +anki-cards-directory-name))

View File

@ -5,20 +5,12 @@
(package! org-roam
:recipe (:host github :repo "org-roam/org-roam"))
(when (modulep! +biblio)
(package! org-roam-bibtex
:recipe (:host github :repo "org-roam/org-roam-bibtex")))
(when (modulep! +anki)
(package! anki-editor
:recipe (:host github
:repo "louietan/anki-editor")
:pin "546774a453ef4617b1bcb0d1626e415c67cc88df"))
(when (modulep! +markdown)
(package! md-roam
:recipe (:host github :repo "nobiot/md-roam" :branch "v2")))
(when (modulep! +graph)
(package! simple-httpd)
(package! websocket)