summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-06-26 22:08:05 +0200
committerLeon Rische <leon.rische@me.com>2020-06-26 22:08:05 +0200
commit7b1c49c5eccdcc3baa2bab8ffd8ce6cc5b3d1569 (patch)
treea7c48c92e56841f03a5e5edc1792cd3731d2793f /org-fc.el
parentebb1ca23969c301fb3eaed238375e1f65f2bf420 (diff)
Add a `after-review` hook
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el6
1 files changed, 6 insertions, 0 deletions
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