Function: org-agenda-capture

org-agenda-capture is an interactive and byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-capture &optional WITH-TIME)

Documentation

Call org-capture with the date at point.

With a C-1 prefix, use the HH:MM value at point (if any) or the current HH:MM time.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-capture (&optional with-time)
  "Call `org-capture' with the date at point.
With a `C-1' prefix, use the HH:MM value at point (if any) or the
current HH:MM time."
  (interactive "P")
  (if (not (eq major-mode 'org-agenda-mode))
      (user-error "You cannot do this outside of agenda buffers")
    (let ((org-overriding-default-time
	   (org-get-cursor-date (equal with-time 1))))
      (call-interactively 'org-capture))))