mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: revise docstrings
This commit is contained in:
@ -436,12 +436,14 @@ with `org-cycle')."
|
|||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org-unfold-to-2nd-level-or-point-h ()
|
(defun +org-unfold-to-2nd-level-or-point-h ()
|
||||||
"My version of the 'overview' #+STARTUP option: expand first-level headings.
|
"Alters '#+STARTUP overview' to only expand first-level headings.
|
||||||
Expands the first level, but no further. If point was left somewhere deeper,
|
Expands the first level, but no further. If a different startup option was
|
||||||
unfold to point on startup."
|
provided, do that instead."
|
||||||
(unless org-agenda-inhibit-startup
|
(unless org-agenda-inhibit-startup
|
||||||
|
;; TODO Implement a custom #+STARTUP option?
|
||||||
(when (eq org-startup-folded t)
|
(when (eq org-startup-folded t)
|
||||||
(outline-hide-sublevels +org-initial-fold-level))
|
(outline-hide-sublevels +org-initial-fold-level))
|
||||||
|
;; If point was left somewhere deeper, unfold to point on startup.
|
||||||
(when (outline-invisible-p)
|
(when (outline-invisible-p)
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
@ -230,8 +230,8 @@ This forces it to read the background before rendering."
|
|||||||
(require lang nil t))
|
(require lang nil t))
|
||||||
(add-to-list 'org-babel-load-languages (cons lang t)))))
|
(add-to-list 'org-babel-load-languages (cons lang t)))))
|
||||||
|
|
||||||
;; Lazy load babel packages for exporting
|
|
||||||
(defadvice! +org--export-lazy-load-library-h ()
|
(defadvice! +org--export-lazy-load-library-h ()
|
||||||
|
"Lazy load a babel package when a block is executed during exporting."
|
||||||
:before #'org-babel-exp-src-block
|
:before #'org-babel-exp-src-block
|
||||||
(+org--babel-lazy-load-library-a (org-babel-get-src-block-info)))
|
(+org--babel-lazy-load-library-a (org-babel-get-src-block-info)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user