From: Francis Moreau <francis.moro@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: hook for buffer creation
Date: Mon, 15 Mar 2010 13:37:08 -0700 (PDT) [thread overview]
Message-ID: <e47f8e33-b785-45f3-84fd-1d90dbed0ce6@v20g2000yqv.googlegroups.com> (raw)
In-Reply-To: 44wrxdodh6.fsf@be-well.ilk.org
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 ?
next prev parent reply other threads:[~2010-03-15 20:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-13 17:44 hook for buffer creation Francis Moreau
2010-03-15 14:40 ` Lowell Gilbert
2010-03-15 20:37 ` Francis Moreau [this message]
2010-03-15 22:16 ` Lowell Gilbert
2010-03-17 22:24 ` Colin S. Miller
2010-03-20 18:45 ` Francis Moreau
2010-03-22 15:33 ` Stefan Monnier
2010-05-04 17:50 ` Dan Davison
[not found] ` <mailman.15.1272995469.29092.help-gnu-emacs@gnu.org>
2010-05-04 19:49 ` Colin S. Miller
2010-05-05 4:39 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e47f8e33-b785-45f3-84fd-1d90dbed0ce6@v20g2000yqv.googlegroups.com \
--to=francis.moro@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.