tweak(docs): move point to first heading on visit
This commit is contained in:
parent
c4b7071397
commit
4661ea89f2
1 changed files with 4 additions and 1 deletions
|
@ -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 ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue