Enhance use-package defaults and performance
This commit is contained in:
@@ -48,6 +48,9 @@ When set to non-nil, Emacs will automatically call `package-initialize' and
|
|||||||
|
|
||||||
;;; Load pre-early-init.el
|
;;; Load pre-early-init.el
|
||||||
|
|
||||||
|
;; Prefer loading newer compiled files
|
||||||
|
(setq load-prefer-newer t)
|
||||||
|
|
||||||
(defun minimal-emacs-load-user-init (filename)
|
(defun minimal-emacs-load-user-init (filename)
|
||||||
"Execute a file of Lisp code named FILENAME."
|
"Execute a file of Lisp code named FILENAME."
|
||||||
(let ((user-init-file
|
(let ((user-init-file
|
||||||
@@ -81,9 +84,6 @@ When set to non-nil, Emacs will automatically call `package-initialize' and
|
|||||||
|
|
||||||
;;; Performance
|
;;; Performance
|
||||||
|
|
||||||
;; Prefer loading newer compiled files
|
|
||||||
(setq load-prefer-newer t)
|
|
||||||
|
|
||||||
;; Font compacting can be very resource-intensive, especially when rendering
|
;; Font compacting can be very resource-intensive, especially when rendering
|
||||||
;; icon fonts on Windows. This will increase memory usage.
|
;; icon fonts on Windows. This will increase memory usage.
|
||||||
(setq inhibit-compacting-font-caches t)
|
(setq inhibit-compacting-font-caches t)
|
||||||
@@ -273,9 +273,17 @@ When set to non-nil, Emacs will automatically call `package-initialize' and
|
|||||||
(setq use-dialog-box nil))
|
(setq use-dialog-box nil))
|
||||||
|
|
||||||
;;; package.el
|
;;; package.el
|
||||||
(setq package-enable-at-startup nil)
|
(setq use-package-compute-statistics minimal-emacs-debug)
|
||||||
(setq package-quickstart nil)
|
|
||||||
|
;; Setting use-package-expand-minimally to (t) results in a more compact output
|
||||||
|
;; that emphasizes performance over clarity.
|
||||||
|
(setq use-package-expand-minimally (not noninteractive))
|
||||||
|
|
||||||
|
(setq use-package-minimum-reported-time (if minimal-emacs-debug 0 0.1))
|
||||||
|
(setq use-package-verbose minimal-emacs-debug)
|
||||||
|
(setq package-enable-at-startup nil) ; Let the init.el file handle this
|
||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
|
(setq use-package-enable-imenu-support t)
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||||
("melpa-stable" . "https://stable.melpa.org/packages/")
|
("melpa-stable" . "https://stable.melpa.org/packages/")
|
||||||
("gnu" . "https://elpa.gnu.org/packages/")
|
("gnu" . "https://elpa.gnu.org/packages/")
|
||||||
|
|||||||
Reference in New Issue
Block a user