* outline minor mode font lock
@ 2003-06-15 4:39 mr.sparkle
2003-06-15 14:26 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: mr.sparkle @ 2003-06-15 4:39 UTC (permalink / raw)
Anyone know how to get the different levels of outline-minor-mode
colorized like outline major mode?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outline minor mode font lock
2003-06-15 4:39 outline minor mode font lock mr.sparkle
@ 2003-06-15 14:26 ` Stefan Monnier
2003-06-16 0:59 ` mr.sparkle
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2003-06-15 14:26 UTC (permalink / raw)
> Anyone know how to get the different levels of outline-minor-mode
> colorized like outline major mode?
I guess something like
(add-hook 'outline-minor-mode-hook
(lambda () (font-lock-add-keywords nil outline-font-lock-keywords)))
but it might depend on the major mode with which you use it, with the
version of Emacs you use, on the way you turn on font-lock-mode, on
how you want to the major-mode patterns and the outline-mode patterns
to interact, ...
Feel free to give more info.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outline minor mode font lock
2003-06-15 14:26 ` Stefan Monnier
@ 2003-06-16 0:59 ` mr.sparkle
2003-06-16 14:01 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: mr.sparkle @ 2003-06-16 0:59 UTC (permalink / raw)
>> Anyone know how to get the different levels of outline-minor-mode
>> colorized like outline major mode?
>I guess something like
> (add-hook 'outline-minor-mode-hook
> (lambda () (font-lock-add-keywords nil outline-font-lock-keywords)))
>but it might depend on the major mode with which you use it, with the
>version of Emacs you use, on the way you turn on font-lock-mode, on
>how you want to the major-mode patterns and the outline-mode patterns
>to interact, ...
>Feel free to give more info.
> Stefan
Thanks for the reply. I use outline-minor-mode mostly in
emacs-wiki(love it!) and todo-mode buffers. It's totally
functional,just not colorized. I tried your suggestion, but I couldn't
get it to work satisfactorily. It seems to work in records-mode but
not in wiki or todo modes. Also it seems to randomly colorize my
.emacs when I view that in outline-minor-mode. It's not a major issue,
but it would be nice to have the outline headers colorized in
outline-minor-mode.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outline minor mode font lock
2003-06-16 0:59 ` mr.sparkle
@ 2003-06-16 14:01 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2003-06-16 14:01 UTC (permalink / raw)
> Thanks for the reply. I use outline-minor-mode mostly in
> emacs-wiki(love it!) and todo-mode buffers. It's totally
> functional,just not colorized. I tried your suggestion, but I couldn't
> get it to work satisfactorily. It seems to work in records-mode but
> not in wiki or todo modes. Also it seems to randomly colorize my
> .emacs when I view that in outline-minor-mode. It's not a major issue,
> but it would be nice to have the outline headers colorized in
> outline-minor-mode.
What I posted adds stuff to existing colorization, so if wiki-mode
or todo-mode does not do any colorizing, it won't help.
Also patterns by default do not override each other, so if the major mode's
patterns and outline-minor-mode's pattern can be highlight an area,
by default only one of the two will get its way.
On the other hand, what you can do is take a look at
outline-font-lock-keywords, and massage it to better behave in a minor
mode setting (use the docstring of font-lock-keywords to help you
decypher the thing).
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-16 14:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-15 4:39 outline minor mode font lock mr.sparkle
2003-06-15 14:26 ` Stefan Monnier
2003-06-16 0:59 ` mr.sparkle
2003-06-16 14:01 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.