summary refs log tree commit diff stats
path: root/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/early-init.el b/early-init.el index e024b50..4b67629 100644 --- a/early-init.el +++ b/early-init.el
@@ -28,7 +28,9 @@
28(setq package-priorities '(("melpa" . 3) 28(setq package-priorities '(("melpa" . 3)
29 ("nongnu" . 2) 29 ("nongnu" . 2)
30 ("gnu" . 1) 30 ("gnu" . 1)
31 ("melpa-stable" . 0))) 31 ("melpa-stable" . 0))
32 package-enable-at-startup nil)
33
32(package-initialize) 34(package-initialize)
33(unless package-archive-contents 35(unless package-archive-contents
34 (package-refresh-contents)) 36 (package-refresh-contents))
@@ -36,9 +38,15 @@
36(setq use-package-enable-imenu-support t 38(setq use-package-enable-imenu-support t
37 use-package-hook-name-suffix nil) 39 use-package-hook-name-suffix nil)
38 40
39(require 'use-package) 41(eval-when-compile
42 (require 'use-package))
40(setq use-package-compute-statistics debug-on-error) 43(setq use-package-compute-statistics debug-on-error)
41 44
45(define-advice use-package (:before (name &rest body) select)
46 "Add NAME to `package-selected-packages'."
47 (when (memq :ensure body)
48 (add-to-list 'package-selected-packages name)))
49
42(use-package use-package-vc 50(use-package use-package-vc
43 :load-path "~/src/emacs/use-package-vc.el/" 51 :load-path "~/src/emacs/use-package-vc.el/"
44 :config 52 :config