Commit c3a9b0be4c77

Vincent Demeester <vincent@sbr.pm>
2020-06-11 15:20:10
tools/emacs: update org-roam capture ref template…
… to include the body. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 16a839f
Changed files (1)
tools
emacs
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)
            "%?"