tweak(docs): move point to first heading on visit

This commit is contained in:
Henrik Lissner 2022-02-01 23:45:13 +01:00
parent c4b7071397
commit 4661ea89f2
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -320,7 +320,10 @@ Keeps track of its own IDs in `doom-docs-dir' and toggles `doom-docs-mode' when
(unless (local-variable-p 'org-startup-folded) (unless (local-variable-p 'org-startup-folded)
(let ((org-startup-folded 'content)) (let ((org-startup-folded 'content))
(org-set-startup-visibility)))) (org-set-startup-visibility))))
(add-hook 'read-only-mode-hook #'doom--docs-toggle-read-only-h nil 'local)) (add-hook 'read-only-mode-hook #'doom--docs-toggle-read-only-h nil 'local)
(org-with-limited-levels
(end-of-line)
(null (re-search-forward org-outline-regexp-bol nil t))))
;;;###autoload ;;;###autoload
(defun doom-docs-read-only-h () (defun doom-docs-read-only-h ()