Closed nordlow closed 10 months ago
Ahh, I just realized that only some modes inherit from prog-mode
.
As an alternative solution I thought
(defun ahs-mode-maybe ()
"Fire up `auto-highlight-symbol-mode' if major-mode in ahs-modes."
(when (and (not (minibufferp (current-buffer)))
(memq major-mode ahs-modes))
(auto-highlight-symbol-mode t)))
could be replaced with
(defun ahs-mode-maybe ()
"Fire up `auto-highlight-symbol-mode' if major-mode in ahs-modes."
(when (and (not (minibufferp (current-buffer)))
(or prog-mode (memq major-mode ahs-modes)))
(auto-highlight-symbol-mode t)))
but this doesn't work because prog-mode is a group not a variable so I don't see a way to use prog-mode for now so closing this.
What about defaulting
ash-modes
to'(prog-mode)
?