diff options
Diffstat (limited to 'config/doom')
-rw-r--r-- | config/doom/config.org | 28 |
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" |