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: Lowell Gilbert
Subject: Re: hook for buffer creation
Date: Tue, 04 May 2010 15:42:30 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix)

Francis Moreau <francis.moro@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.



reply via email to

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