Browse Source

Handle checklists in insert-item function

George Jones 2 months ago
parent
commit
77bf9bdbf9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      elisp-public/gmj-insert-item-or-heading.el

+ 3 - 1
elisp-public/gmj-insert-item-or-heading.el

@@ -17,7 +17,9 @@ else insert a new heading.
       ;; to allow multi-line list elements.
       (progn
         (end-of-line)
-        (org-insert-item)
+        (if (org-at-item-checkbox-p)
+            (org-insert-item '(checkbox))
+          (org-insert-item))
         )
     (org-insert-heading-respect-content)))