help-gnu-emacs
[Top][All Lists]
Advanced

[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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]