mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 04:57:57 +00:00
emacs: update Doom Emacs custom wiki module
We'll go full citar for our bibliography management.
This commit is contained in:
parent
8f54d19712
commit
89244b7ccd
@ -23,32 +23,6 @@
|
|||||||
(other-window 1)
|
(other-window 1)
|
||||||
(org-roam-node-random))
|
(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)
|
(when (modulep! +anki)
|
||||||
(defvar +anki-cards-directory-name "cards")
|
(defvar +anki-cards-directory-name "cards")
|
||||||
(defvar +anki-cards-directory (f-join +wiki-directory +anki-cards-directory-name))
|
(defvar +anki-cards-directory (f-join +wiki-directory +anki-cards-directory-name))
|
||||||
|
@ -5,20 +5,12 @@
|
|||||||
(package! org-roam
|
(package! org-roam
|
||||||
:recipe (:host github :repo "org-roam/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)
|
(when (modulep! +anki)
|
||||||
(package! anki-editor
|
(package! anki-editor
|
||||||
:recipe (:host github
|
:recipe (:host github
|
||||||
:repo "louietan/anki-editor")
|
:repo "louietan/anki-editor")
|
||||||
:pin "546774a453ef4617b1bcb0d1626e415c67cc88df"))
|
:pin "546774a453ef4617b1bcb0d1626e415c67cc88df"))
|
||||||
|
|
||||||
(when (modulep! +markdown)
|
|
||||||
(package! md-roam
|
|
||||||
:recipe (:host github :repo "nobiot/md-roam" :branch "v2")))
|
|
||||||
|
|
||||||
(when (modulep! +graph)
|
(when (modulep! +graph)
|
||||||
(package! simple-httpd)
|
(package! simple-httpd)
|
||||||
(package! websocket)
|
(package! websocket)
|
||||||
|
Loading…
Reference in New Issue
Block a user