Completely redo agenda buffers when jumping to today

This allows stale buffers from previous days to be updated in one go.
This commit is contained in:
Daniel Borchmann 2024-12-20 11:53:39 +01:00
parent 60463a01e3
commit 2837712f5c
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -789,7 +789,12 @@
;; bound, resulting in some prior calls of `org-read-date' to ignore
;; the hh:mm part. So let's bind this variable now to make things
;; work.
(defvar org-time-was-given nil)))
(defvar org-time-was-given nil)
;; Completely redo agenda buffer when jumping to today; this ensures that agenda views
;; from previous days get updated as expected.
(define-advice org-agenda-goto-today (:before () redo-all)
(org-agenda-redo-all))))
(use-package org-cycle
:autoload (org-cycle-hide-drawers)