Configure org-gtd package

This commit is contained in:
Max Schlueter 2022-09-15 22:54:38 +02:00
parent a8abb8dab6
commit b975c8c75c
2 changed files with 29 additions and 0 deletions

View File

@ -144,6 +144,34 @@
(add-hook 'org-capture-after-finalize-hook #'+org-pomodoro/start-pomodoro-on-capture))
(defun max/org-gtd--incubate ()
"Process GTD inbox item by incubating it.
Allow the user apply user-defined tags from
`org-tag-persistent-alist', `org-tag-alist' or file-local tags in
the inbox. Refile to any org-gtd incubate target (see manual)."
(interactive)
(org-gtd--decorate-item)
(org-gtd--refile org-gtd-incubated)
(org-gtd-process-inbox))
(use-package! org-gtd
:after org
:config
(org-edna-mode)
(setq org-gtd-directory (concat org-directory "newgtd/")
org-edna-use-inheritance t
org-gtd-refile-to-any-target t )
(advice-add #'org-gtd--incubate :override #'max/org-gtd--incubate)
(map! :leader
(:prefix ("d" . "org-gtd")
:desc "Capture" "c" #'org-gtd-capture
:desc "Engage" "e" #'org-gtd-engage
:desc "Process inbox" "p" #'org-gtd-process-inbox
:desc "Show all next" "n" #'org-gtd-show-all-next
:desc "Stuck projects" "s" #'org-gtd-show-stuck-projects))
(map! :map org-gtd-process-map
:desc "Choose" "C-c c" #'org-gtd-choose))
(defun max/org-agenda-bulk-mark-inbox-items ()
"Bulk mark all inbox items in the org-agenda."
(let ((entries-marked 0))

View File

@ -68,4 +68,5 @@
(package! citar-org-roam
:recipe (:host github :repo "emacs-citar/citar-org-roam"))
(package! pdf-tools :built-in 'prefer)
(package! org-gtd)
;; (package! weblorg)