org-occur-hook

org-occur-hook is a variable defined in `org.el'.
Its value is
(org-first-headline-recenter)

  • This variable may be risky if used as a file-local variable.

Documentation:
Hook that is run after `org-occur' has constructed a sparse tree.
This can be used to recenter the window to show as much of the structure
as possible.

You can customize this variable.