From 028dc91f2803ba3eaa91f95495c5f2565ef418a3 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 13 Jun 2024 21:04:45 +0200 Subject: [PATCH] Insert current clock when capturing simple tasks This is more reasonable than inserting a link to the current location of point, which can be quite arbitrary (at least in my workflow). When a link to the item at point is needed, it should be inserted manually. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 53c52db..e5b8387 100644 --- a/init.el +++ b/init.el @@ -1125,7 +1125,7 @@ quickly loose their meaning." (file db/org-default-refile-file) ,(concat "* TODO [#B] %^{What}\n" ":PROPERTIES:\n:CREATED: %U\n:END:\n" - "\nVia %a." + "\nVia %(with-temp-buffer (db/org-add-link-to-current-clock) (string-trim (buffer-string)))." "%?") :empty-lines-before 1 :empty-lines-after 0)