Function: org-roam-capture-
org-roam-capture- is an autoloaded and byte-compiled function defined
in org-roam-capture.el.
Signature
(org-roam-capture- &key GOTO KEYS NODE INFO PROPS TEMPLATES)
Documentation
Main entry point of org-roam-capture module.
GOTO and KEYS correspond to org-capture arguments.
INFO is a plist for filling up Org-roam's capture templates.
NODE is an org-roam-node construct containing information about the node.
PROPS is a plist containing additional Org-roam properties for each template.
TEMPLATES is a list of org-roam templates.
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-capture.el
;;; Main entry point
;;;###autoload
(cl-defun org-roam-capture- (&key goto keys node info props templates)
"Main entry point of `org-roam-capture' module.
GOTO and KEYS correspond to `org-capture' arguments.
INFO is a plist for filling up Org-roam's capture templates.
NODE is an `org-roam-node' construct containing information about the node.
PROPS is a plist containing additional Org-roam properties for each template.
TEMPLATES is a list of org-roam templates."
(let* ((props (plist-put props :call-location (point-marker)))
(org-capture-templates
(mapcar (lambda (template)
(org-roam-capture--convert-template template props))
(or templates org-roam-capture-templates)))
(_ (setf (org-roam-node-id node) (or (org-roam-node-id node)
(org-id-new))))
(org-roam-capture--node node)
(org-roam-capture--info info))
(when (and (not keys)
(= (length org-capture-templates) 1))
(setq keys (caar org-capture-templates)))
(org-capture goto keys)))