From: John <john@ankarstrom.se>
To: help-gnu-emacs@gnu.org
Subject: outline-minor-mode: customizing outline-regexp?
Date: Fri, 12 Jan 2018 22:10:38 +0000 (UTC) [thread overview]
Message-ID: <pan$9e8ca$779a1402$32e4cae$69320dd2@ankarstrom.se> (raw)
[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]
Hello all!
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
my changes.
This is my last, desperate attempt:
--8<---------------cut here---------------start------------->8---
(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)
--8<---------------cut here---------------end--------------->8---
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.
Does anybody have experience with this? I'd be thankful for any help :-)
- John
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 484 bytes --]
next reply other threads:[~2018-01-12 22:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-12 22:10 John [this message]
2018-01-13 14:05 ` outline-minor-mode: customizing outline-regexp? Michael Heerdegen
[not found] ` <mailman.7326.1515852317.27995.help-gnu-emacs@gnu.org>
2018-01-13 14:22 ` John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pan$9e8ca$779a1402$32e4cae$69320dd2@ankarstrom.se' \
--to=john@ankarstrom.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).