emacs-devel
[Top][All Lists]
Advanced

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

Re: Add hook by default


From: psachin
Subject: Re: Add hook by default
Date: Wed, 13 Apr 2016 20:19:29 +0530

Thanx Stefan. That was really helpful. Appreciate your quick response :)

On Wed, Apr 13, 2016 at 6:31 PM, Stefan Monnier <address@hidden> wrote:
> 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]