Home / Emacs / Magit / Configure!
Auto-reveal invisible content
Auto-reveal content around point if hidden.
(with-eval-after-load 'magit
(add-hook 'magit-diff-visit-file-hook
(defun my-magit-reveal-point-if-invisible ()
"Reveal the point if in an invisible region."
(if (derived-mode-p 'org-mode)
(org-reveal '(4))
(require 'reveal)
(reveal-post-command)))))