aboutsummaryrefslogtreecommitdiff
path: root/config/emacs/emacs.d/lisp
diff options
context:
space:
mode:
authorKenny Ballou <kb@devnulllabs.io>2021-04-16 17:52:48 -0600
committerKenny Ballou <kb@devnulllabs.io>2021-04-17 12:19:57 -0600
commit8d8ca4e1b5b57b8d0782a23b58956ea330b5a529 (patch)
treead83b816ac798a68433b73eed2cf0d8f36ef50db /config/emacs/emacs.d/lisp
parent2397000226a3dce9536d3c728a2d9e4af4072420 (diff)
downloaddotfiles-8d8ca4e1b5b57b8d0782a23b58956ea330b5a529.tar.gz
dotfiles-8d8ca4e1b5b57b8d0782a23b58956ea330b5a529.tar.xz
emacs: org: file task notes to logbook datetree
Instead of trying to log items to the task itself, simply log the note to a global logbook with a link to the task. The active region, if any, will be inserted into the entry text. Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'config/emacs/emacs.d/lisp')
-rw-r--r--config/emacs/emacs.d/lisp/init-org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/emacs/emacs.d/lisp/init-org.el b/config/emacs/emacs.d/lisp/init-org.el
index c8e79b04..2b03c68e 100644
--- a/config/emacs/emacs.d/lisp/init-org.el
+++ b/config/emacs/emacs.d/lisp/init-org.el
@@ -206,6 +206,7 @@
(defvar kb/org-journal-file (concat org-directory "journal.org"))
(defvar kb/org-work-journal-file (concat org-directory "work.org"))
(defvar kb/org-bookmarks-file (concat org-directory "bookmarks.org"))
+(defvar kb/org-logbook-file (concat org-directory "logbook.org"))
(setq org-default-notes-file kb/org-refile)
(defun kb/org-clocking-p ()
@@ -222,7 +223,7 @@
("r" "respond" entry (file kb/org-refile)
(file "~/.config/emacs/org-captures/RESPOND")
:clock-in t :clock-resume t :immediate-finish t)
- ("tn" "note on task" entry (clock)
+ ("tn" "note on task" entry (file+olp+datetree kb/org-logbook-file)
(file "~/.config/emacs/org-captures/TASK_NOTE") :empty-lines 1)
("tr" "related task" entry (clock)
(file "~/.config/emacs/org-captures/RELATED_TODO"))