aboutsummaryrefslogtreecommitdiff
path: root/hcel-outline.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-23 14:18:11 +1000
committerYuchen Pei <hi@ypei.me>2022-09-23 14:18:11 +1000
commitf73cbee6f83f948202d0ea3fb8775b49562295be (patch)
treea8f4aeda7fdb80e89d4da2e2b8e167873f8ccc6f /hcel-outline.el
parent138869fcbec02630b4311b88118bc8d48584ea2d (diff)
fixing compiler warnings and removing major-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))