diff --git a/lisp/hl-line.el b/lisp/hl-line.el index 0f36b2458ab..2c80ce0c1ca 100644 --- a/lisp/hl-line.el +++ b/lisp/hl-line.el @@ -263,7 +263,8 @@ on `post-command-hook'." (defun global-hl-line-highlight () "Highlight the current line in the current window." - (when (and global-hl-line-mode ; Might be changed outside the mode function. + (require 'easy-mmode) + (when (and global-hl-line-mode ; Might be changed outside the mode function. (easy-mmode--globalized-predicate-p global-hl-line-modes)) (unless (window-minibuffer-p) (unless (overlayp global-hl-line-overlay)