aboutsummaryrefslogtreecommitdiff
path: root/hcel-outline.el
diff options
context:
space:
mode:
Diffstat (limited to 'hcel-outline.el')
-rw-r--r--hcel-outline.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcel-outline.el b/hcel-outline.el
index 2c7913c..962e5aa 100644
--- a/hcel-outline.el
+++ b/hcel-outline.el
@@ -207,7 +207,7 @@ update in the outline mode too."
:lighter " hcel-outline-follow"
:after-hook
(if hcel-outline-follow-mode
- (if (not (eq major-mode 'hcel-outline-mode))
+ (if (not (derived-mode-p 'hcel-outline-mode))
(error "Not in hcel-outline mode!")
(add-hook 'post-command-hook
#'hcel-outline-open-thing-at-point-other-window nil t))