summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-11-10 08:47:12 +0100
committerLeon Rische <leon.rische@me.com>2020-11-10 08:47:12 +0100
commit359b5c5dd519db37dfab4968ddcfe1dde22cae97 (patch)
treee03515ea648714be0489fa08576e122cbc7f2857 /org-fc.el
parent4670413c11dd2d649010ca41deb553dfd50f64a8 (diff)
Enable org-fc modes in modes derived from org-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