diff --git a/modules/lang/org/autoload/org.el b/modules/lang/org/autoload/org.el index 4668f25f5..0a569243a 100644 --- a/modules/lang/org/autoload/org.el +++ b/modules/lang/org/autoload/org.el @@ -78,10 +78,6 @@ If on a: (setq context (org-element-property :parent context) type (org-element-type context))) (pcase type - ((guard (org-element-property :checkbox (org-element-lineage context '(item) t))) - (let ((match (and (org-at-item-checkbox-p) (match-string 1)))) - (org-toggle-checkbox (if (equal match "[ ]") '(16))))) - (`headline (cond ((and (fboundp 'toc-org-insert-toc) (member "TOC" (org-get-tags))) @@ -147,6 +143,10 @@ If on a: (+org/refresh-inline-images) (org-open-at-point)))) + ((guard (org-element-property :checkbox (org-element-lineage context '(item) t))) + (let ((match (and (org-at-item-checkbox-p) (match-string 1)))) + (org-toggle-checkbox (if (equal match "[ ]") '(16))))) + (_ (+org/refresh-inline-images))))) (defun +org-insert-item (direction)