Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract autoloads from packages after installation #752

Open
makeamark1 opened this issue Jul 7, 2018 · 1 comment
Open

Extract autoloads from packages after installation #752

makeamark1 opened this issue Jul 7, 2018 · 1 comment

Comments

@makeamark1
Copy link

makeamark1 commented Jul 7, 2018

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.

@dunn
Copy link
Collaborator

dunn commented Jul 9, 2018

Yes, that would be very welcome! Another user began work on it a while back, but never quite finished: #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants