[Org] Make sure org-clock is loaded when using the org-clock hydra
This commit is contained in:
parent
aaba12a8e2
commit
ec35b0edae
|
@ -444,9 +444,14 @@ forces clocking in of the default task."
|
||||||
(org-with-point-at clock-in-to-task
|
(org-with-point-at clock-in-to-task
|
||||||
(org-clock-in nil))))
|
(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)
|
(defhydra hydra-org-clock (:color blue)
|
||||||
"
|
"
|
||||||
Current Task: %`org-clock-current-task; "
|
Current Task: %s(db/org-clock-current-task); "
|
||||||
("w" (lambda ()
|
("w" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(db/clock-in-task-by-id org-working-task-id)))
|
(db/clock-in-task-by-id org-working-task-id)))
|
||||||
|
|
Loading…
Reference in New Issue