Yes, that solves the problem. Now, I can turn on hs-minor-mode.
Enabling `hs-minor-mode' tests if `comment-start' and `comment-end' areShiyuan <gshy2014@gmail.com> writes:
> I want to turn-on the hide-show-minor-mode in a user-defined
> mymode. But it gives me the error: mymode doesn't support hide show
> minor mode. I have put (require 'hideshow) at the beginning of
> mymode.el, and also
> (hs-minor-mode 1) in the body of the definition of the major mode, and
> after that
> I put (add-to-list 'hs-special-modes-alist '(mymode "{" "}" "/[*/]"
> nil nil)) in mymode.el.
>
> What else I should do to utilize the hs-minor-mode in mymode? Thanks.
bound to something non-nil and fails otherwise. This happens even
before `hs-special-modes-alist' is handled. IMHO this doesn't make much
sense. FWIW, your minor-mode must bind `comment-start' and
`comment-end'.
If your mode doesn't have comments at all, you can bind these to a
regexp that always fails matching - like "\\=[^[:ascii:][:nonascii:]]".
Does that help?
Michael.