;;; init-elpa.el --- .Emacs Configuration -*- lexical-binding: t -*- ;;; Commentary: ;; ;;; Code: ;;; Find and load the correct package.el ;; ===================================================== ;; use-package → https://github.com/jwiegley/use-package ;; ===================================================== (require 'package) ;; Repositories ;; ================ (setq package-archives '(("GNU ELPA" . "https://elpa.gnu.org/packages/") ("MELPA Stable" . "https://stable.melpa.org/packages/") ("ORG" . "https://orgmode.org/elpa/") ("MELPA" . "https://melpa.org/packages/")) package-archive-priorities '(("MELPA Stable" . 10) ("GNU ELPA" . 5) ("ORG" . 3) ("MELPA" . 0)) package-enable-at-startup nil) ;; ================= (setq package-native-compile t) (setq package-check-signature 'allow-unsigned) (package-initialize) ;; 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) ;; ===================================================== ;; End use-package ;; ===================================================== (provide 'init-elpa) ;; End: ;;; init-elpa.el ends here