Re: psychic emacs

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

 



On 7/31/06, Amadeus W. M. <amadeus84@xxxxxxxxxxxxxx> wrote:
On Mon, 31 Jul 2006 17:50:06 -0400, Patrick Doyle wrote:

> On 7/31/06, Amadeus W. M. <amadeus84@xxxxxxxxxxxxxx> wrote:
>> Do this on FC5:
>>
>> 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.
>>
> That's done by the rpm-spec-initialize function, which is a hook in
> 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.

You're talking about /usr/share/emacs/site-lisp/rpm-spec-mode.elc
right? When you first mentioned it, I thought now that we know
who's responsible for .spec, it should be straightforward to
"port" it to C/C++. After seeing the .elc file, I'm thinking
holy crap!

>
> 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.

Same here.

> 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

Oops, sorry 'bout that chief...  You will probably need to do something like

$ sudo yum install emacs-el

Or something like that.  I don't recall the exact package name...

$ yum list emacs*

will probably find it for you.  IIRC it's somewhere in site-lisp...

--wpd

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux