From 7b1c49c5eccdcc3baa2bab8ffd8ce6cc5b3d1569 Mon Sep 17 00:00:00 2001 From: Leon Rische Date: Fri, 26 Jun 2020 22:08:05 +0200 Subject: Add a `after-review` hook --- org-fc.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'org-fc.el') diff --git a/org-fc.el b/org-fc.el index 984c0b7..5f1b19d 100644 --- a/org-fc.el +++ b/org-fc.el @@ -198,6 +198,11 @@ Values are in days." :type 'hook :group 'org-fc) +(defcustom org-fc-after-review-hook '() + "Functions run when a review session ends / is quit." + :type 'hook + :group 'org-fc) + ;;;; Diff (defcustom org-fc-diff-filler ?- @@ -1926,6 +1931,7 @@ rating the card." "Quit the review, remove all overlays from the buffer." (interactive) (org-fc-review-reset) + (run-hooks 'org-fc-after-review-hook) (setq org-fc-review--current-session nil)) ;;; Dashboard -- cgit v1.2.3