From 8ff133758172935ce5f569c440cdc56015309563 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Thu, 16 Apr 2020 19:08:45 +0200 Subject: [PATCH] Update roam template --- dotfiles/doom.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles/doom.org b/dotfiles/doom.org index 1567398..2a8bf7f 100644 --- a/dotfiles/doom.org +++ b/dotfiles/doom.org @@ -2197,7 +2197,9 @@ List all element of the bibliography without pdf associated :load-path "~/.config/doom/packages/org-roam-bibtex/" :config (org-roam-bibtex-mode) - (setq org-roam-bibtex-preformat-keywords `("=key=" "title" "author" "year")) + (setq org-roam-bibtex-preformat-keywords `("=key=" "title" "author" "year" "author-abbrev" "=type=")) + + (setq org-roam-bibtex-template `(("r" "ref" plain (function org-roam-capture--get-point) "" @@ -2207,10 +2209,11 @@ List all element of the bibliography without pdf associated "#+ROAM_KEY: ${ref}\n" "\n" "- Tags :: %?\n" + "- Reference :: ${ref}\n" "- Author(s) :: ${author}\n" "- Year :: ${year}\n" "\n" - "* Notes :ignore:\n" + "* ${author-abbrev} (${year}): ${title} :${=type=}:ignore:\n" ":PROPERTIES:\n" ":NOTER_DOCUMENT: ../pdfs/${=key=}.pdf\n" ":END:\n")