fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

disable hs-minor-mode in web-mode #464

Closed ghost closed 9 years ago

ghost commented 9 years ago

I use Prelude, in my personal.el, I wrote (add-hook 'prog-mode-hook #'hs-minor-mode) (add-hook 'web-mode-hook (lambda () (hs-minor-mode -1))) but when I open a *.html file, in mini buffer, show an error information: "File mode specification error: (error "Web Mode doesn't support Hideshow Minor Mode")". I don't know why! Need your help, thank you.

fxbois commented 9 years ago

@zwb-ict you should ask to the prelude moderator. I can provide help if needed

ghost commented 9 years ago

@fxbois Thank you, I send this iuuse to prelude moderator just now, When I get reliable information,I'll feedback.

ghost commented 9 years ago

@fxbois I got the solution, I tried (add-hook 'prog-mode-hook (lambda () (unless (eq major-mode 'web-mode) (hs-minor-mode)))), and it works. So I will close this issue. Sorry to bother you!

fxbois commented 9 years ago

@zwb-ict if web-mode is not compatible with hs-minor-mode, can your patch be added to prelude ?

ghost commented 9 years ago

@fxbois It may be not, prelude, in default, isn't enable hs-minor-mode for any prog-mode, I add this in my own personal.el.