[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: outline-minor-mode: customizing outline-regexp?

From: Michael Heerdegen
Subject: Re: outline-minor-mode: customizing outline-regexp?
Date: Sat, 13 Jan 2018 15:05:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

John <address@hidden> writes:

> This is my last, desperate attempt:
> (defun my/css-outline ()
>   (interactive)
>   (outline-minor-mode -1)
>   (outline-minor-mode)
>   (outshine-hook-function)
>   (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]