From b0975b8db5749a611acd663f7a2a93f4e26abff3 Mon Sep 17 00:00:00 2001 From: Niten Date: Mon, 4 Jul 2022 22:24:12 +0000 Subject: [PATCH 1/3] When all subtasks are done, todo task is done --- config.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.el b/config.el index 3b145ff..b3ec5a8 100644 --- a/config.el +++ b/config.el @@ -131,6 +131,11 @@ (setq exec-path (remove-duplicates (append (get-bash-path) exec-path) :test #'equal)) +(defun org-summary-todo (n-done n-not-done) + "Switch entry to DONE when all subentries are done, to TODO otherwise." + (let (org-log-done org-log-states) ; turn off logging + (org-todo (if (= n-not-done 0) "DONE" "TODO")))) + (let ((site-dir (if (getenv "DOOM_EMACS_SITE_PATH") (getenv "DOOM_EMACS_SITE_PATH") (expand-file-name ".doom.d/site.d/")))) From b0cd3ef52e506c55d127d204e6a365ddadd02a9e Mon Sep 17 00:00:00 2001 From: Niten Date: Mon, 4 Jul 2022 22:25:30 +0000 Subject: [PATCH 2/3] ...And enable it --- config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.el b/config.el index bc1cc9d..1e8f930 100644 --- a/config.el +++ b/config.el @@ -142,6 +142,8 @@ (let (org-log-done org-log-states) ; turn off logging (org-todo (if (= n-not-done 0) "DONE" "TODO")))) +(add-hook 'org-after-todo-statistics-hook #'org-summary-todo) + (let ((site-dir (if (getenv "DOOM_EMACS_SITE_PATH") (getenv "DOOM_EMACS_SITE_PATH") (expand-file-name ".doom.d/site.d/")))) From f5f64049e4d782cd7ad2527165f520f4b0dac0d2 Mon Sep 17 00:00:00 2001 From: Niten Date: Sat, 9 Jul 2022 21:55:24 -0500 Subject: [PATCH 3/3] Try out a new theme --- config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.el b/config.el index 1e8f930..2adaedd 100644 --- a/config.el +++ b/config.el @@ -25,7 +25,8 @@ ;; There are two ways to load a theme. Both assume the theme is installed and ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: -(setq doom-theme 'doom-snazzy) +;;(setq doom-theme 'doom-snazzy) +(setq doom-theme 'doom-tokyo-night) ;; If you use `org' and don't want your org files in the default location below, ;; change `org-directory'. It must be set before org loads!