summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-06-28 15:28:45 +0200
committerLeon Rische <leon.rische@me.com>2020-06-28 15:28:45 +0200
commit3717c17b54a3e9c0d3f537ff4c3d2c1f5411743f (patch)
tree9911cb5c2b96fa4f58b6377db8a74b388fce816b /org-fc.el
parent5b8174f93659e5c9699b658fe66065839e8d9b23 (diff)
Add before-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 5f1b19d..e995a28 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-before-review-hook '()
+ "Functions run when a review session is started."
+ :type 'hook
+ :group 'org-fc)
+
(defcustom org-fc-after-review-hook '()
"Functions run when a review session ends / is quit."
:type 'hook
@@ -1741,6 +1746,7 @@ Valid contexts:
(progn
(setq org-fc-review--current-session
(org-fc-make-review-session cards))
+ (run-hooks 'org-fc-before-review-hook)
(org-fc-review-next-card))))))
;;;###autoload