Improve package and use-package configuration
This commit is contained in:
@@ -248,6 +248,11 @@
|
||||
;; loaded, but after `early-init-file'.
|
||||
(setq package-enable-at-startup t)
|
||||
|
||||
(setq package-quickstart nil)
|
||||
|
||||
;; Always ensure packages are installed
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
;;; Load post-early-init.el
|
||||
(minimal-emacs-load-user-init "post-early-init.el")
|
||||
|
||||
|
||||
10
init.el
10
init.el
@@ -14,12 +14,13 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
;;; Load pre-init.el (after package/use-package and before init)
|
||||
(minimal-emacs-load-user-init "pre-init.el")
|
||||
|
||||
;;; package.el
|
||||
|
||||
(require 'package)
|
||||
|
||||
(setq package-quickstart nil)
|
||||
|
||||
(when (version< emacs-version "28")
|
||||
(add-to-list 'package-archives
|
||||
'("nongnu" . "https://elpa.nongnu.org/nongnu/")))
|
||||
@@ -52,11 +53,6 @@
|
||||
(eval-when-compile
|
||||
(require 'use-package))
|
||||
|
||||
;; Always ensure packages are installed
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
;;; Load pre-init.el (after package/use-package and before init)
|
||||
(minimal-emacs-load-user-init "pre-init.el")
|
||||
;;; Load auto-compile and gcmh
|
||||
|
||||
(use-package auto-compile
|
||||
|
||||
Reference in New Issue
Block a user