Function: org-first-headline-recenter

org-first-headline-recenter is a byte-compiled function defined in org.el.gz.

Signature

(org-first-headline-recenter)

Documentation

Move cursor to the first headline and recenter the headline.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-first-headline-recenter ()
  "Move cursor to the first headline and recenter the headline."
  (let ((window (get-buffer-window)))
    (when window
      (goto-char (point-min))
      (when (re-search-forward (concat "^\\(" org-outline-regexp "\\)") nil t)
	(set-window-start window (line-beginning-position))))))