[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to apply a minor mode to all buffers
From: |
Robert Thorpe |
Subject: |
Re: How to apply a minor mode to all buffers |
Date: |
22 Jan 2007 03:48:30 -0800 |
User-agent: |
G2/1.0 |
Lennart Borgman (gmail) wrote:
> Robert Thorpe wrote:
>
> > I think it would be useful is Emacs had some more general hooks than
> > the ones it has a present, for example:-
> > progmodes-hook - A hook ran whenever a programming language mode starts
> > plain-text-modes-hook - A hook ran by text-mode,
> > paragraph-indent-text-mode etc
> > formatted-text-modes-hook - A hook ran by tex-mode, nroff-mode,
> > sgml-mode etc
> >
> > This would provide the functionality with less code than hooking many
> > modes. It would avoid the problem of weird minor modes affecting
> > temporary buffers and things like M-x snake.
> >
> > I might write that sometime, but I can't right now.
>
>
> Did you look at `after-change-major-mode-hook'?
The after-change-mode-hook is still quite tedious.
Let's say you want to enable hide-show mode in every mode in which it's
useful. Generally it's only useful in programming language modes and a
few text modes, currently the only way to accurately do this is to
enable it individually in many hooks.
- RE: How to apply a minor mode to all buffers, (continued)
- RE: How to apply a minor mode to all buffers, Drew Adams, 2007/01/18
- Re: How to apply a minor mode to all buffers, James Aguilar, 2007/01/18
- RE: How to apply a minor mode to all buffers, Drew Adams, 2007/01/18
- Re: How to apply a minor mode to all buffers, Eli Zaretskii, 2007/01/19
- Re: How to apply a minor mode to all buffers, James Aguilar, 2007/01/19
- Re: How to apply a minor mode to all buffers, Juanma Barranquero, 2007/01/19
- Re: How to apply a minor mode to all buffers, Eli Zaretskii, 2007/01/20
- Message not available
- Re: How to apply a minor mode to all buffers, Robert Thorpe, 2007/01/20
- Re: How to apply a minor mode to all buffers, Lennart Borgman (gmail), 2007/01/20
- Re: How to apply a minor mode to all buffers, Mathias Dahl, 2007/01/22
- Message not available
- Re: How to apply a minor mode to all buffers,
Robert Thorpe <=
- Re: How to apply a minor mode to all buffers, Eli Zaretskii, 2007/01/22
- Message not available
- Re: How to apply a minor mode to all buffers, Robert Thorpe, 2007/01/23
- Re: How to apply a minor mode to all buffers, Eli Zaretskii, 2007/01/23
- Re: How to apply a minor mode to all buffers, Stefan Monnier, 2007/01/22
- Message not available
- Re: How to apply a minor mode to all buffers, Stefan Monnier, 2007/01/22