* Should outline-minor-mode be globalized?
@ 2016-04-04 2:39 raman
2016-04-04 5:16 ` John Wiegley
0 siblings, 1 reply; 5+ messages in thread
From: raman @ 2016-04-04 2:39 UTC (permalink / raw
To: emacs-devel
It's nice to be able to globally turn on font-lock mode; on a similar
note, it would be nice to be able to turn on outline-minor-mode
globally -- rather than setting mode-specific hooks to turn on
outline-minor-mode.
Is there any risk in globalizing outline-minor-mode?
--
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Should outline-minor-mode be globalized?
2016-04-04 2:39 Should outline-minor-mode be globalized? raman
@ 2016-04-04 5:16 ` John Wiegley
2016-04-04 12:39 ` Stefan Monnier
2016-04-04 15:25 ` raman
0 siblings, 2 replies; 5+ messages in thread
From: John Wiegley @ 2016-04-04 5:16 UTC (permalink / raw
To: raman; +Cc: emacs-devel
>>>>> raman <raman@google.com> writes:
> It's nice to be able to globally turn on font-lock mode; on a similar note,
> it would be nice to be able to turn on outline-minor-mode globally -- rather
> than setting mode-specific hooks to turn on outline-minor-mode.
> Is there any risk in globalizing outline-minor-mode?
Wouldn't it really just be applicable in text-mode derived buffers? I have a
hard time seeing its value when turned on for dired, Gnus, *Help*,
compilation, etc.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Should outline-minor-mode be globalized?
2016-04-04 5:16 ` John Wiegley
@ 2016-04-04 12:39 ` Stefan Monnier
2016-04-05 15:29 ` raman
2016-04-04 15:25 ` raman
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2016-04-04 12:39 UTC (permalink / raw
To: emacs-devel
>> It's nice to be able to globally turn on font-lock mode; on a similar note,
>> it would be nice to be able to turn on outline-minor-mode globally -- rather
>> than setting mode-specific hooks to turn on outline-minor-mode.
>> Is there any risk in globalizing outline-minor-mode?
> Wouldn't it really just be applicable in text-mode derived buffers?
Actually I wouldn't expect it to be very much used in text-mode buffers.
These use-cases are probably better supported by outline-mode or org-mode.
But maybe
(add-hook 'prog-mode-hook #'outline-minor-mode)
covers Raman's needs?
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Should outline-minor-mode be globalized?
2016-04-04 5:16 ` John Wiegley
2016-04-04 12:39 ` Stefan Monnier
@ 2016-04-04 15:25 ` raman
1 sibling, 0 replies; 5+ messages in thread
From: raman @ 2016-04-04 15:25 UTC (permalink / raw
To: emacs-devel
John Wiegley <jwiegley@gmail.com> writes:
Hi John,
The following is admittedly a power-user scenario, but other places
(other than text-mode) where I have turned on outline-minor-mode:
1. w3-mode in the past
2. eww-mode
Both of the above when reading ebooks from places like Project
Gutenberg.
In many of those instances, you can productively jump by chapter etc by
appropriately setting outline-regexp to something like "^CHAPTER" and
then using outline-minor-mode navigation commands.
--Raman
>>>>>> raman <raman@google.com> writes:
>
>> It's nice to be able to globally turn on font-lock mode; on a similar note,
>> it would be nice to be able to turn on outline-minor-mode globally -- rather
>> than setting mode-specific hooks to turn on outline-minor-mode.
>
>> Is there any risk in globalizing outline-minor-mode?
>
> Wouldn't it really just be applicable in text-mode derived buffers? I have a
> hard time seeing its value when turned on for dired, Gnus, *Help*,
> compilation, etc.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Should outline-minor-mode be globalized?
2016-04-04 12:39 ` Stefan Monnier
@ 2016-04-05 15:29 ` raman
0 siblings, 0 replies; 5+ messages in thread
From: raman @ 2016-04-05 15:29 UTC (permalink / raw
To: Stefan Monnier; +Cc: emacs-devel
outline-minor-mode would be nice in prog-modes -- but there many of the
needs are served by selective display since programming languages
usually rely on indentation to show structure visually.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-05 15:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04 2:39 Should outline-minor-mode be globalized? raman
2016-04-04 5:16 ` John Wiegley
2016-04-04 12:39 ` Stefan Monnier
2016-04-05 15:29 ` raman
2016-04-04 15:25 ` raman
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.