[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I need packages and custom with --script
From: |
Stefan Monnier |
Subject: |
Re: I need packages and custom with --script |
Date: |
Wed, 28 Sep 2022 23:05:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> #+begin_src emacs-lisp
> (require 'package)
> ;; Maybe set ‘package-load-list’ here.
> (package-initialize)
> #+end_src
Nitpick: `package-initialize` sets up package.el so it's ready to do
pretty much anything, including install/uninstall etc...
So, nowadays (since Emacs-27) you should use `package-activate-all`
instead, which focuses on activating the installed packages without
paying attention to things like the list of existing packages in the
package archives etc...
IOW, it's faster (especially if you're using `package-quickstart`).
Stefan