summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/org-fc.el b/org-fc.el
index 1b25b21..5ad0bdb 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -1168,7 +1168,7 @@ removed."
;; Make sure only one of the modes is active at a time
(org-fc-review-rate-mode -1)
;; Make sure we're in org mode and there is an active review session
- (unless (and (eq major-mode 'org-mode) org-fc--session)
+ (unless (and (derived-mode-p 'org-mode) org-fc--session)
(org-fc-review-flip-mode -1))))
;;;;; Rate Mode
@@ -1197,7 +1197,7 @@ removed."
;; Make sure only one of the modes is active at a time
(org-fc-review-flip-mode -1)
;; Make sure we're in org mode and there is an active review session
- (unless (and (eq major-mode 'org-mode) org-fc--session)
+ (unless (and (derived-mode-p 'org-mode) org-fc--session)
(org-fc-review-rate-mode -1))))
(defvar org-fc-review-edit-mode-map
@@ -1219,7 +1219,7 @@ removed."
(org-fc-review-flip-mode -1)
(org-fc-review-rate-mode -1)
;; Make sure we're in org mode and there is an active review session
- (unless (and (eq major-mode 'org-mode) org-fc--session)
+ (unless (and (derived-mode-p 'org-mode) org-fc--session)
(org-fc-review-edit-mode -1))))
;;;; Main Loop