I use outline-minor-mode in combination with the package outshine, but I'm
having a problem with the `outline-regexp' variable.
The way I understand it, it's supposed to control the regexp for the
outline headings. I want to change the regexp for css-mode, but no matter
what I set it to, it appears to use the old syntax for headings, ignoring
> This is my last, desperate attempt:
> (defun my/css-outline ()
> (outline-minor-mode -1)
> (setq outline-regexp
> (rx "/**"
> (one-or-more (any "*"))
> " ")))
> (add-hook 'css-mode-hook #'my/css-outline)
> It successfully sets the `outline-regexp' variable, but outline-minor-
> mode, or perhaps outshine, doesn't seem to respect it. I suspect there's
> something else I need to do.
Looking at the code (I don't use outshine) it seems that outshine sets
`outline-regexp' itself, so I guess it overwrites your setting. I guess
you need to configure outshine's variables instead.