home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c3a9b0be4c773ee94b409240fc0ae6c2baafc75f
parent 16a839fbec2daaa58be45739496d4b41159156a0
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 11 Jun 2020 15:20:10 +0200

tools/emacs: update org-roam capture ref template…

… to include the body.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-org.el | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -629,6 +629,11 @@ With prefix argument, also display headlines without a TODO keyword." ;; (goto-char (point-max)) ;; (insert (concat "\n* Backlinks\n" links)))))) ;; (add-hook 'org-export-before-processing-hook 'my/org-export-preprocessor)) + (setq org-roam-capture-ref-templates + '(("r" "ref" plain #'org-roam-capture--get-point "" + :file-name "${slug}" + :head "#+title: ${title}\n#+roam_key: ${ref}\n\n${body}" + :unnarrowed t))) (setq org-roam-capture-templates '(("d" "default" plain (function org-roam--capture-get-point) "%?"