From ed6e88d1069557f1e68aa769934f008cb6c1fed5 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Tue, 19 Dec 2023 11:24:28 -0500 Subject: [PATCH] Fix direnv/org configs --- main.org | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/main.org b/main.org index 853ecc5..746580f 100644 --- a/main.org +++ b/main.org @@ -142,7 +142,7 @@ In order to support direnv (loading =nix-shell= / =nix develop=) #+begin_src elisp :tangle yes (leaf direnv :ensure t - :hook + :config (direnv-mode)) #+end_src @@ -315,6 +315,19 @@ updating our bibliography. :init (leaf pdf-tools :ensure t) :config + (setq bibtex-completion-bibliography + (list (expand-file-name "~/Documents/Bibliography/references.bib"))) + + (setq org-ref-bibliography-notes "~/Documents/Bibliography/notes.org" + org-ref-default-bibliography '("~/Documents/Bibliography/references.bib") + org-ref-pdf-directory "~/Documents/Bibliography/bibtex-pdfs/") + + (setq org-ref-insert-link-function 'org-ref-insert-link-hydra/body + org-ref-insert-cite-function 'org-ref-cite-insert-helm + org-ref-insert-label-function 'org-ref-insert-label-link + org-ref-insert-ref-function 'org-ref-insert-ref-link + org-ref-cite-onclick-function (lambda (_) (org-ref-citation-hydra/body))) + :require org-ref org-ref-ivy org-ref-helm doi-utils) #+end_src @@ -351,7 +364,7 @@ nice. Should use the export based templating probably. Eventually. :after org :require org-ref oc-csl org-tempo ox-latex ox-pandoc ox-reveal :init - :bind + :bind* ("C-c ]" . org-ref-insert-link) ("s-[" . org-ref-insert-link-hydra/body) :hook @@ -362,18 +375,6 @@ nice. Should use the export based templating probably. Eventually. org-confirm-babel-evaluate nil org-src-preserve-indentation t) - (setq bibtex-completion-bibliography - (list (expand-file-name "~/Documents/Bibliography/references.bib"))) - - (setq org-ref-bibliography-notes "~/Documents/Bibliography/notes.org" - org-ref-default-bibliography '("~/Documents/Bibliography/references.bib") - org-ref-pdf-directory "~/Documents/Bibliography/bibtex-pdfs/") - - (setq org-ref-insert-link-function 'org-ref-insert-link-hydra/body - org-ref-insert-cite-function 'org-ref-cite-insert-helm - org-ref-insert-label-function 'org-ref-insert-label-link - org-ref-insert-ref-function 'org-ref-insert-ref-link - org-ref-cite-onclick-function (lambda (_) (org-ref-citation-hydra/body))) (tempo-define-template "Fig. Caption" '("" (P "Image: " image t) (P "Caption: " caption t)