From b6d44dde94b7e41d6a5764059210f0f0a5ce54fa Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 30 Apr 2020 15:29:21 -0700 Subject: [PATCH] Doom: Add ttm-org-clear-all for groceries --- doom/config.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doom/config.el b/doom/config.el index ee067e6..e35531c 100644 --- a/doom/config.el +++ b/doom/config.el @@ -60,6 +60,14 @@ ;; Make C-h kill a word in Ivy, for symmetry with C-j/k/l bindings. (map! :map ivy-mode-map "C-h" #'ivy-backward-kill-word) +;; Clear all todo statuses in org-mode. For Grocery list. +(defun ttm-org-clear-all () + (interactive) + (org-map-entries + (lambda () + (org-todo ""))) + (message "Entries cleared.")) + ;; Here are some additional functions/macros that could help you configure Doom: ;; ;; - `load!' for loading external *.el files relative to this one