aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-06-02 17:22:56 +0200
committerÓscar Nájera <hi@oscarnajera.com>2021-06-02 17:22:56 +0200
commitcb44a41fa2bcdb0a92f4dc439753f0ed70efe7f1 (patch)
tree355fec293eb2ba53610f6c3f35bc4e6f5cfae76d /config
parent1a4e6e590bd33595e8d6fe497d4b0e940f9594c1 (diff)
downloaddotfiles-cb44a41fa2bcdb0a92f4dc439753f0ed70efe7f1.tar.gz
dotfiles-cb44a41fa2bcdb0a92f4dc439753f0ed70efe7f1.tar.bz2
dotfiles-cb44a41fa2bcdb0a92f4dc439753f0ed70efe7f1.zip
org-ref
Diffstat (limited to 'config')
-rw-r--r--config/doom/config.org28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org
index ed1e22a..250f6a6 100644
--- a/config/doom/config.org
+++ b/config/doom/config.org
@@ -128,6 +128,34 @@ this new window.
cal-sync-calendar-id "personal"
org-icalendar-date-time-format ":%Y%m%dT%H%M%SZ"))
#+end_src
+** References
+#+begin_src emacs-lisp :tangle "packages.el"
+(package! helm-bibtex)
+(package! org-ref)
+#+end_src
+#+begin_src emacs-lisp
+(use-package! helm-bibtex
+ :commands helm-bibtex
+ :init
+ (setq bibtex-completion-bibliography (expand-file-name "biblio.bib" org-directory)
+ bibtex-completion-pdf-field "file"
+ bibtex-completion-library-path (expand-file-name "bibtex-pdf/" org-directory)
+ bibtex-completion-notes-path (expand-file-name "roam/" org-directory)
+ bibtex-completion-notes-template-multiple-files "#+title: ${title} (${year})\n#+author: ${author-or-editor}\n")
+ :config
+ (defun bibtex-completion-open-notes-and-pdf (keys)
+ (bibtex-completion-open-pdf keys)
+ (bibtex-completion-edit-notes keys))
+
+ (helm-bibtex-helmify-action bibtex-completion-open-notes-and-pdf helm-bibtex-open-notes-and-pdf)
+ ;(helm-delete-action-from-source "Edit notes with PDF" helm-source-bibtex)
+ (helm-add-action-to-source "Edit notes with PDF" 'helm-bibtex-open-notes-and-pdf helm-source-bibtex 1))
+
+(use-package! org-ref
+ :init
+ (setq org-ref-default-bibliography (expand-file-name "biblio.bib" org-directory)
+ org-ref-pdf-directory (expand-file-name "bibtex-pdf/" org-directory)))
+#+end_src
* Email
** Notmuch
#+begin_src emacs-lisp :tangle "packages.el"