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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hook for buffer creation


From: Francis Moreau
Subject: Re: hook for buffer creation
Date: Tue, 04 May 2010 15:42:31 -0000
User-agent: G2/1.0

On Mar 15, 3:40 pm, Lowell Gilbert <lguse...@be-well.ilk.org> wrote:
> Francis Moreau <francis.m...@gmail.com> writes:
> > I'd like to hilight some keywords for any buffers whatever the mode
> > used for this buffer. In order to achieve that I'd like to use the
> > hook called when a buffer is created but I can't find it. I only found
> > the hook used when a buffer is killed.
>
> > Could anybody tell me the revelant hook to use ?
>
> This is a kind of strange request.  There are several options in the
> "Standard Hooks" node of the elisp manual (Appendix 1).  If the buffers
> will always have files attached, I'd suggest find-file-hook.  Otherwise,
> something related to local variables will probably get executed at the
> right time.

This is a kind of a strange answer :)

So there's no hook for buffer creation if the new buffer is not
attached to a file ?


reply via email to

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