Fix direnv/org configs
This commit is contained in:
29
main.org
29
main.org
@@ -142,7 +142,7 @@ In order to support direnv (loading =nix-shell= / =nix develop=)
|
|||||||
#+begin_src elisp :tangle yes
|
#+begin_src elisp :tangle yes
|
||||||
(leaf direnv
|
(leaf direnv
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook
|
:config
|
||||||
(direnv-mode))
|
(direnv-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@@ -315,6 +315,19 @@ updating our bibliography.
|
|||||||
:init
|
:init
|
||||||
(leaf pdf-tools :ensure t)
|
(leaf pdf-tools :ensure t)
|
||||||
:config
|
: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)
|
:require org-ref org-ref-ivy org-ref-helm doi-utils)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@@ -351,7 +364,7 @@ nice. Should use the export based templating probably. Eventually.
|
|||||||
:after org
|
:after org
|
||||||
:require org-ref oc-csl org-tempo ox-latex ox-pandoc ox-reveal
|
:require org-ref oc-csl org-tempo ox-latex ox-pandoc ox-reveal
|
||||||
:init
|
:init
|
||||||
:bind
|
:bind*
|
||||||
("C-c ]" . org-ref-insert-link)
|
("C-c ]" . org-ref-insert-link)
|
||||||
("s-[" . org-ref-insert-link-hydra/body)
|
("s-[" . org-ref-insert-link-hydra/body)
|
||||||
:hook
|
:hook
|
||||||
@@ -362,18 +375,6 @@ nice. Should use the export based templating probably. Eventually.
|
|||||||
org-confirm-babel-evaluate nil
|
org-confirm-babel-evaluate nil
|
||||||
org-src-preserve-indentation t)
|
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"
|
(tempo-define-template "Fig. Caption"
|
||||||
'("" (P "Image: " image t)
|
'("" (P "Image: " image t)
|
||||||
(P "Caption: " caption t)
|
(P "Caption: " caption t)
|
||||||
|
|||||||
Reference in New Issue
Block a user