From ec35b0edaec636bb76389a66308ed3ee1e00ede1 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 3 Nov 2018 11:31:36 +0100 Subject: [PATCH] [Org] Make sure org-clock is loaded when using the org-clock hydra --- site-lisp/db-org.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 53a3604..43a77f6 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -444,9 +444,14 @@ forces clocking in of the default task." (org-with-point-at clock-in-to-task (org-clock-in nil)))) +(defun db/org-clock-current-task () + "Return currently clocked in task." + (require 'org-clock) + org-clock-current-task) + (defhydra hydra-org-clock (:color blue) " -Current Task: %`org-clock-current-task; " +Current Task: %s(db/org-clock-current-task); " ("w" (lambda () (interactive) (db/clock-in-task-by-id org-working-task-id)))