[Org] Make sure org-clock is loaded when using the org-clock hydra

This commit is contained in:
Daniel - 2018-11-03 11:31:36 +01:00
parent aaba12a8e2
commit ec35b0edae
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 6 additions and 1 deletions

View File

@ -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)))