Closed hpgisler closed 2 years ago
The manual option is useful for, e.g., integrating org-appear with evil-mode. Below is an example configuration for toggling elements in Insert mode only.
(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)
It would be good to additionally note, that this hook definition is buffer local, i.e. add-hook needs executed for each opened org buffer.
add-hook
E.g. if using use-package, this would look as following:
(use-package org-appear ... :hook (org-mode . (lambda () (org-appear-mode t) (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))) ...
Thank you for pointing this out. You are absolutely right and I clarified the README accordingly.
The README states:
The manual option is useful for, e.g., integrating org-appear with evil-mode. Below is an example configuration for toggling elements in Insert mode only.
HOWEVER:
It would be good to additionally note, that this hook definition is buffer local, i.e.
add-hook
needs executed for each opened org buffer.E.g. if using use-package, this would look as following: