commit b7e2e5333883ea73169b221729ee5e115bd5e444
parent 68106e6441386c80e6d59a54e35a84b8493fec92
Author: Anders Hedman <anders.hedman01@gmail.com>
Date: Mon, 2 Jan 2023 12:13:17 +0100
doom: org-present start folded
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.doom.d/config.el b/.doom.d/config.el
@@ -168,8 +168,14 @@
(visual-fill-column-mode 0)
(visual-line-mode 0))
+ (defun my/org-present-prepare-slide (buffer-name heading)
+ (org-overview)
+ (org-fold-show-entry)
+ (org-fold-show-children))
+
(add-hook 'org-present-mode-hook 'my/org-present-start)
(add-hook 'org-present-mode-quit-hook 'my/org-present-end)
+ (add-hook 'org-present-after-navigate-functions 'my/org-present-prepare-slide)
)
(use-package! treemacs