Rudy’s OBTF Rudolf Adamkovič

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)))))

Doom Emacs issue 4895


© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.