emacs-devel
[Top][All Lists]
Advanced

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

Re: Add hook by default


From: Stefan Monnier
Subject: Re: Add hook by default
Date: Wed, 13 Apr 2016 09:01:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> Can we do this programatically? so that users don't have to do this after
> installing an extension.

Yes, you can run any code you want with:

    ;;;###autoload
    (blabla)
or
    ;;;###autoload (blabla)

Both will cause "(blabla)" to be added to the <pkg>-autoloads.el file,
which is preloaded when you run `package-initialize`.


        Stefan




reply via email to

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