refactor(org-checklist): remove redundant hook calls

This commit is contained in:
Kiana Sheibani 2026-02-14 18:41:32 -05:00
parent be6ee0a8b0
commit 1ab7ecb9c9
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -3438,12 +3438,7 @@ The simple package =org-checklist= from =org-contrib= makes it so that checkboxe
:commands (org-reset-checkbox-state-maybe :commands (org-reset-checkbox-state-maybe
org-make-checklist-export org-make-checklist-export
org-checklist) org-checklist)
;; HACK: `org-checklist' adds this hook when it loads, but
;; I want to add it on init so that this package is loaded lazily
:init :init
(add-hook 'org-after-todo-state-change-hook #'org-checklist)
:config
(remove-hook 'org-after-todo-state-change-hook #'org-checklist)
(add-hook 'org-after-todo-state-change-hook #'org-checklist))) (add-hook 'org-after-todo-state-change-hook #'org-checklist)))
#+end_src #+end_src