From e94a7e4edc90ab8bbcf3a60b4f9d0771a1b08d73 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 5 Nov 2023 20:10:11 +1100 Subject: [emacs] Add task management in org. - We can add a task ID to a heading, like PRO-231 - We can associate a task with another task - Blocking is marked explicitly now --- emacs/.emacs.d/init/ycp-org.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init/ycp-org.el') diff --git a/emacs/.emacs.d/init/ycp-org.el b/emacs/.emacs.d/init/ycp-org.el index b20f33e..815216c 100644 --- a/emacs/.emacs.d/init/ycp-org.el +++ b/emacs/.emacs.d/init/ycp-org.el @@ -155,6 +155,13 @@ (my-package org-agenda (:delay 10) + ;; We want to prevent switching not-done to done for items with + ;; not-done children or checkboxes (see + ;; `org-enforce-todo-dependencies' and + ;; `org-enforce-todo-checkbox-dependencies' but we don't want them + ;; marked as blocked, because blocked should be marked explicitly + ;; and dimmed when they are truly blocked by a task somewhere else. + (my-override org-entry-blocked-p) (my-keybind global-map "C-c g" 'my-org-store-agenda-view-A) (setq org-agenda-confirm-kill t) (setq org-agenda-follow-indirect t) @@ -165,7 +172,7 @@ (setq org-agenda-todo-ignore-with-date 'all) (setq org-agenda-todo-ignore-timestamp 'all) (setq org-agenda-tags-todo-honor-ignore-options t) - (setq org-agenda-dim-blocked-tasks nil) + (setq org-agenda-dim-blocked-tasks t) (setq org-agenda-sticky t) (setq org-agenda-inhibit-startup t) (my-setq-from-local org-agenda-files) @@ -307,6 +314,10 @@ (setq org-use-speed-commands t) (setq org-speed-commands '(("User commands") + ("." . my-org-task-add-id) + ("'" . my-org-task-associate) + ("!" . my-org-task-remove-id) + ("\"" . my-org-task-dissociate) ("T" . my-org-swap-referral-with-headline) ("D" . my-org-clean-up-entry) ("g" . org-delete-property) -- cgit v1.2.3