From cb44a41fa2bcdb0a92f4dc439753f0ed70efe7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Wed, 2 Jun 2021 17:22:56 +0200 Subject: org-ref --- config/doom/config.org | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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" -- cgit v1.2.3