From 3e71766f8581f064162af4ba96367d01daacc5ca Mon Sep 17 00:00:00 2001 From: "lh@hrdl.eu" Date: Fri, 12 Mar 2021 11:24:39 +0100 Subject: [PATCH] Add-hook org-clock-cancel-hook --- org-clock-waybar.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-clock-waybar.el b/org-clock-waybar.el index 766b130..31cff71 100644 --- a/org-clock-waybar.el +++ b/org-clock-waybar.el @@ -129,6 +129,7 @@ emacsclient --eval '(org-clock-waybar-output-task)'" It adds `org-clock-waybar-save-task' to both `org-clock-in-hook' and `org-clock-out-hook'." + (add-hook 'org-clock-cancel-hook #'org-clock-waybar-save-task) (add-hook 'org-clock-in-hook #'org-clock-waybar-save-task) (add-hook 'org-clock-out-hook #'org-clock-waybar-save-task) (add-hook 'kill-emacs-hook #'org-clock-waybar-save-task))