[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to apply a minor mode to all buffers
From: |
Stefan Monnier |
Subject: |
Re: How to apply a minor mode to all buffers |
Date: |
Wed, 07 Feb 2007 12:22:54 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) |
> find-file-hook won’t apply to buffers unrelated to files, though.
> after-change-major-mode-hook almost does the trick, but it still
> doesn’t get fundamental-mode.
Then report this with M-x report-emacs-bug.
> My first attempt was find-file-hook, but I want it to apply to
> non-file buffers too (like email drafts, etc).
Then add it to those email-drafts buffers as well. Otherwise you risk
screwing up many more cases for buffers you don't think of
(e.g. minibuffers, help buffers, ...).
> (say, if I simply create a scratch buffer).
If you just create a scratch buffer it won't have any data coming from nasty
vi users (aka vi users).
Stefan
- Re: How to apply a minor mode to all buffers, leoboiko, 2007/02/02
- Re: How to apply a minor mode to all buffers,
Stefan Monnier <=
- Re: How to apply a minor mode to all buffers, Robert Thorpe, 2007/02/07
- Re: How to apply a minor mode to all buffers, Leonardo Boiko, 2007/02/08
- Re: How to apply a minor mode to all buffers, Juanma Barranquero, 2007/02/08
- Message not available
- Re: How to apply a minor mode to all buffers, Robert Thorpe, 2007/02/08
- Re: How to apply a minor mode to all buffers, Juanma Barranquero, 2007/02/08
- Message not available
- Re: How to apply a minor mode to all buffers, Robert Thorpe, 2007/02/09
- Re: How to apply a minor mode to all buffers, Juanma Barranquero, 2007/02/09