From 359b5c5dd519db37dfab4968ddcfe1dde22cae97 Mon Sep 17 00:00:00 2001 From: Leon Rische Date: Tue, 10 Nov 2020 08:47:12 +0100 Subject: Enable org-fc modes in modes derived from org-mode --- org-fc.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org-fc.el') 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 -- cgit v1.2.3