diff --git a/init.el b/init.el index fb52498..1c8cb66 100644 --- a/init.el +++ b/init.el @@ -1234,7 +1234,12 @@ respectively." (add-hook 'org-agenda-mode-hook #'hl-line-mode 'append) (advice-add 'org-agenda - :before #'db/check-special-org-files-in-agenda))) + :before #'db/check-special-org-files-in-agenda) + + (define-advice org-agenda-redo-all (:around (old-func &rest r) goto-top-and-execute) + (save-mark-and-excursion + (goto-char (point-min)) + (apply old-func r))))) ;; Capturing