Re: psychic emacs
- From: "Patrick Doyle" <wpdster@xxxxxxxxx>
- Date: Mon, 31 Jul 2006 17:50:06 -0400
On 7/31/06, Amadeus W. M. <amadeus84@xxxxxxxxxxxxxx> wrote:
Do this on FC5:That's done by the rpm-spec-initialize function, which is a hook in
emacs foobar.spec
Can I configure emacs to do the same with other
file types, or is it compiled in? E.g. whenever I open a blank
foobar.cc automatically #include certain header files, and create
a usage() and main() stub.
the rpm-spec-mode-new-file-hook, which is called when you open a blank
file in RPM mode. By default, files ending in .spec are edited in RPM
mode.
No, I don't see a similar c-mode-new-file-hook -- which is what sent
me down the path of answering this for you -- not because I am
particularly adept at customizing Emacs, I was just intrigued by the
thought of adding my own c-mode-new-file-hook.
Hopefully somebody more expert than I will step in and say, "No --
it's right there!"
--wpd
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- References:
- psychic emacs
- From: Amadeus W. M.
- psychic emacs
- Prev by Date: Re: Removing package and its dependencies
- Previous by thread: psychic emacs
- Next by thread: Removing package and its dependencies
- Index(es):
Relevant Pages
|