mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
640de3fb86
This reverts commit b673fb12c1
.
1,018 B
1,018 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)