diff options
author | Yuchen Pei <id@ypei.org> | 2023-11-05 20:10:11 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-11-05 20:10:11 +1100 |
commit | e94a7e4edc90ab8bbcf3a60b4f9d0771a1b08d73 (patch) | |
tree | bf66b7ab3a5a84caace39d95f5eb35bea4c74ee6 /emacs/.emacs.d/init | |
parent | 3b366eef720d3f7120bf894fb9266e3c8943fa8d (diff) |
[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
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r-- | emacs/.emacs.d/init/ycp-org.el | 13 |
1 files changed, 12 insertions, 1 deletions
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) |