awth13 / org-appear

Toggle visibility of hidden Org mode element parts upon entering and leaving an element
MIT License
383 stars 19 forks source link

Add a public interface for manually controlling element toggling #38

Closed awth13 closed 2 years ago

awth13 commented 2 years ago

New functions org-appear-manual-start and org-appear-manual-stop can be used to signal whether elements should be toggled. Closes #37.

An example of settings to enable org-appear in Insert mode with Evil:

(setq org-appear-trigger 'manual)
(add-hook 'evil-insert-state-entry-hook #'org-appear-manual-start nil t)
(add-hook 'evil-insert-state-exit-hook #'org-appear-manual-stop nil t)