diff options
Diffstat (limited to 'modules/init-elpa.el')
| -rw-r--r-- | modules/init-elpa.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/init-elpa.el b/modules/init-elpa.el index 56a4e55..e58ecdd 100644 --- a/modules/init-elpa.el +++ b/modules/init-elpa.el @@ -28,12 +28,13 @@ (setq package-check-signature 'allow-unsigned) (package-initialize) -(unless (package-installed-p 'use-package) - (unless (assoc 'use-package package-archive-contents) - (package-refresh-contents)) - (package-install 'use-package)) - -(require 'use-package) +;; use-package is bundled with Emacs 28+, but on older Emacs it is not. +;; Since MELPA no longer distributes use-package, load the vendored copy +;; from site-lisp/ so the bootstrap does not depend on GNU ELPA. +(unless (require 'use-package nil t) + (add-to-list 'load-path (expand-file-name "site-lisp/bind-key-2.4.1/" user-emacs-directory)) + (add-to-list 'load-path (expand-file-name "site-lisp/use-package-2.4.6/" user-emacs-directory)) + (require 'use-package)) (setq use-package-always-ensure t use-package-always-defer t use-package-compute-statistics t) |
