Function: org-appear-mode
org-appear-mode is an interactive and natively compiled function
defined in org-appear.el.
Signature
(org-appear-mode &optional ARG)
Documentation
A minor mode that automatically toggles elements in Org mode.
This is a minor mode. If called interactively, toggle the Org-Appear
mode mode. If the prefix argument is positive, enable the mode, and if
it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable org-appear-mode(var)/org-appear-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/ysqmilmh80y85ik1crg29w7g7i73wjk9-emacs-packages-deps/share/emacs/site-lisp/elpa/org-appear-20260716.2120/org-appear.el
;;;###autoload
(define-minor-mode org-appear-mode
"A minor mode that automatically toggles elements in Org mode."
:init-value nil
:lighter nil
:keymap nil
(cond
(org-appear-mode
(org-appear--set-elements)
(add-hook 'post-command-hook #'org-appear--post-cmd nil t)
(add-hook 'pre-command-hook #'org-appear--pre-cmd nil t)
(when (eq org-appear-trigger 'on-change)
(add-hook 'mouse-leave-buffer-hook #'org-appear--after-change nil t)
(add-hook 'after-change-functions #'org-appear--after-change nil t)))
(t
;; Clean up current element when disabling the mode
(when-let* ((current-elem (org-appear--current-elem)))
(org-appear--hide-invisible current-elem)
(when org-appear--timer
(cancel-timer org-appear--timer)
(setq org-appear--timer nil)))
(remove-hook 'post-command-hook #'org-appear--post-cmd t)
(remove-hook 'pre-command-hook #'org-appear--pre-cmd t)
(when (eq org-appear-trigger 'on-change)
(remove-hook 'mouse-leave-buffer-hook #'org-appear--after-change t)
(remove-hook 'after-change-functions #'org-appear--after-change t)))))