Define function `leuven--org-update-buffer' for use in hooks