homebrew-emacs icon indicating copy to clipboard operation
homebrew-emacs copied to clipboard

Extract autoloads from packages after installation

Open makeamark1 opened this issue 6 years ago • 1 comments

Emacs has the concept of autoloading, which allows registering functions but deferring loading of them until a later time to reduce startup time. This is especially useful if a user has many packages installed. It also removes the need for a user to add explicit loading of the package to the user's init file. Most Emacs packages already provide autoload cookies and the built-in Emacs package manager extracts them after installation, which convenient for the user.

Could the Homebrew Emacs tap be made support extracting autoloads too? It would probably involve executing an Emacs function after package installation to extract the autoload cookies into /usr/local/share/emacs/site-lisp. It might be good to look at how the Emacs built-in package manager does it for reference. If support for autoloads is likely to be an accepted feature of the Homebrew Emacs tap, I could look into contributing through a pull request.

makeamark1 avatar Jul 07 '18 22:07 makeamark1

Yes, that would be very welcome! Another user began work on it a while back, but never quite finished: https://github.com/dunn/homebrew-emacs/pull/13

dunn avatar Jul 09 '18 16:07 dunn