mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
bbaae4362b
Signed-off-by: Magic_RB <magic_rb@redalder.org>
902 B
902 B
Org Habit
(require 'org-habit)
Setup a function which resets any checkboxes under a TODO
which changes state to DONE
. Many thanks to davidglasser, who had this exact same issue and solved it on Reddit.
(defun glasser-org-reset-check-on-repeat ()
(when (and (org-get-repeat) (member org-state org-done-keywords))
(org-reset-checkbox-state-subtree)))
(add-hook 'org-after-todo-state-change-hook 'glasser-org-reset-check-on-repeat)