Fix ttm-org-clear-all
This commit is contained in:
@@ -82,10 +82,11 @@
|
||||
;; Clear all todo statuses in org-mode. For Grocery list.
|
||||
(defun ttm-org-clear-all ()
|
||||
(interactive)
|
||||
(goto-char 0)
|
||||
(org-map-entries
|
||||
(lambda ()
|
||||
(org-todo "")))
|
||||
(flush-lines "CLOSED:")
|
||||
(flush-lines "CLOSED")
|
||||
(message "Entries cleared."))
|
||||
|
||||
(map! :mode org-mode :localleader "C" :desc "Clear all todos" #'ttm-org-clear-all)
|
||||
|
||||
Reference in New Issue
Block a user