* Re: outline-minor-mode color on by default?
[not found] <mailman.2645.1046616100.21513.help-gnu-emacs@gnu.org>
@ 2003-03-02 15:31 ` Matthias Meulien
2003-03-02 17:00 ` Eladio Ventura
[not found] ` <mailman.2649.1046620341.21513.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Matthias Meulien @ 2003-03-02 15:31 UTC (permalink / raw)
Eladio Ventura <eladioventura@yahoo.com> wrote:
> (...) At present, I have to hit outline(-major)-mode for the
> Christmas lights to flare up, but I'd like to use text-mode as my
> major mode.
I put the following at the end of text files to be used with
`outline-minor-mode' :
;;; Local Variables: ***
;;; mode: text ***
;;; font-lock-defaults: (outline-font-lock-keywords t nil nil backward-paragraph) ***
;;; End: ***
Is it ok ?
--
Matthias
^ permalink raw reply [flat|nested] 5+ messages in thread
* outline-minor-mode color on by default?
@ 2003-03-02 15:49 Eladio Ventura
0 siblings, 0 replies; 5+ messages in thread
From: Eladio Ventura @ 2003-03-02 15:49 UTC (permalink / raw)
I use outline-mode mainly to spice up my textfiles with some colors, but
alas when I use outline-minor-mode as a hook to text-mode, all I get is
the folding capability. I would like to be able see my files in funky
colors the minute desktop-mode has finished loading all my files when I
start up emacs. At present, I have to hit outline(-major)-mode for the
Christmas lights to flare up, but I'd like to use text-mode as my major mode.
Can anyone help me? I've put the following in my dot-emacs:
(add-hook 'text-mode-hook
(function (lambda ()
(outline-minor-mode 1))))
--
"Thinking gives you wrinkles!"
Malibu Stacy, the Simpsons
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: outline-minor-mode color on by default?
2003-03-02 15:31 ` outline-minor-mode color on by default? Matthias Meulien
@ 2003-03-02 17:00 ` Eladio Ventura
[not found] ` <mailman.2649.1046620341.21513.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Eladio Ventura @ 2003-03-02 17:00 UTC (permalink / raw)
* Matthias Meulien <cimosque@free.fr> [030302 16:47]:
> ;;; Local Variables: ***
> ;;; mode: text ***
> ;;; font-lock-defaults: (outline-font-lock-keywords t nil nil backward-paragraph) ***
> ;;; End: ***
>
> Is it ok ?
Yes, it works like a charm. Thanks a load, Matthias!
--
"Thinking gives you wrinkles!"
Malibu Stacy, the Simpsons
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: outline-minor-mode color on by default?
[not found] ` <mailman.2649.1046620341.21513.help-gnu-emacs@gnu.org>
@ 2003-03-02 19:16 ` Stefan Monnier
2003-03-02 22:26 ` Eladio Ventura
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2003-03-02 19:16 UTC (permalink / raw)
>> ;;; Local Variables: ***
>> ;;; mode: text ***
>> ;;; font-lock-defaults: (outline-font-lock-keywords t nil nil backward-paragraph) ***
>> ;;; End: ***
>>
>> Is it ok ?
> Yes, it works like a charm. Thanks a load, Matthias!
Just for the record: it shouldn't work (and I think it won't work
in future versions of Emacs) because it's a security hole.
Question: why `text-mode + outline-minor-mode' rather than `outline-mode' ?
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: outline-minor-mode color on by default?
2003-03-02 19:16 ` Stefan Monnier
@ 2003-03-02 22:26 ` Eladio Ventura
0 siblings, 0 replies; 5+ messages in thread
From: Eladio Ventura @ 2003-03-02 22:26 UTC (permalink / raw)
* Stefan Monnier <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> [030302 21:40]:
> Just for the record: it shouldn't work (and I think it won't work
> in future versions of Emacs) because it's a security hole.
>
> Question: why `text-mode + outline-minor-mode' rather than `outline-mode' ?
You're right. It smells like a security hole, all right. I mainly want
text-mode for adaptive-fill-mode, but I'm rather new to emacs, so if you
know how to get the same color effect turned on by default I'm all ears.
Hold the phone, can't I put -*- mode: outline-mode -*- at the top of my
textfiles? How does that work?
--
"Thinking gives you wrinkles!"
Malibu Stacy, the Simpsons
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-03-02 22:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2645.1046616100.21513.help-gnu-emacs@gnu.org>
2003-03-02 15:31 ` outline-minor-mode color on by default? Matthias Meulien
2003-03-02 17:00 ` Eladio Ventura
[not found] ` <mailman.2649.1046620341.21513.help-gnu-emacs@gnu.org>
2003-03-02 19:16 ` Stefan Monnier
2003-03-02 22:26 ` Eladio Ventura
2003-03-02 15:49 Eladio Ventura
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).