Use org-tree-slide-play-hook to hide blocks

This commit is contained in:
Connor James 2021-06-07 09:56:37 -07:00
parent b2376a847f
commit 87abb63dd2

View file

@ -36,9 +36,8 @@ headings as titles, and you have more freedom to place them wherever you like.")
org-tree-slide-heading-emphasis t) org-tree-slide-heading-emphasis t)
(add-hook 'org-tree-slide-after-narrow-hook #'org-display-inline-images) (add-hook 'org-tree-slide-after-narrow-hook #'org-display-inline-images)
(add-hook! 'org-tree-slide-mode-hook (add-hook 'org-tree-slide-mode-hook #'+org-present-prettify-slide-h)
#'+org-present-hide-blocks-h (add-hook 'org-tree-slide-play-hook #'+org-present-hide-blocks-h)
#'+org-present-prettify-slide-h)
(when (featurep! :editor evil) (when (featurep! :editor evil)
(map! :map org-tree-slide-mode-map (map! :map org-tree-slide-mode-map