Function: org-agenda-insert-diary-as-top-level
org-agenda-insert-diary-as-top-level is a byte-compiled function
defined in org-agenda.el.gz.
Signature
(org-agenda-insert-diary-as-top-level TEXT)
Documentation
Make new entry as a top-level entry at the end of the file.
Add TEXT as headline, and position the cursor in the second line so that a timestamp can be added there.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-insert-diary-as-top-level (text)
"Make new entry as a top-level entry at the end of the file.
Add TEXT as headline, and position the cursor in the second line so that
a timestamp can be added there."
(widen)
(goto-char (point-max))
(unless (bolp) (insert "\n"))
(org-insert-heading nil t t)
(insert text)
(org-end-of-meta-data)
(unless (bolp) (insert "\n"))
(when org-adapt-indentation (indent-to-column 2)))