From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.help Subject: Re: hook for buffer creation Date: Mon, 15 Mar 2010 13:37:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <44wrxdodh6.fsf@be-well.ilk.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272994020 21798 80.91.229.12 (4 May 2010 17:27:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 17:27:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 19:26:58 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9LtT-0005xE-Gt for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:26:54 +0200 Original-Received: from localhost ([127.0.0.1]:56784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9LtP-0003mN-TD for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 13:26:47 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!v20g2000yqv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 82.235.205.153 Original-X-Trace: posting.google.com 1268685428 28223 127.0.0.1 (15 Mar 2010 20:37:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 15 Mar 2010 20:37:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v20g2000yqv.googlegroups.com; posting-host=82.235.205.153; posting-account=ekTE0goAAADiVCThPmo4ph0C5bTUhQOx User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9, gzip(gfe), gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177473 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72984 Archived-At: On Mar 15, 3:40=A0pm, Lowell Gilbert wrote: > Francis Moreau 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. =A0There are several options in the > "Standard Hooks" node of the elisp manual (Appendix 1). =A0If the buffers > will always have files attached, I'd suggest find-file-hook. =A0Otherwise= , > 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 ?