diff options
author | Case Duckworth | 2023-04-16 17:06:41 -0500 |
---|---|---|
committer | Case Duckworth | 2023-04-16 17:06:41 -0500 |
commit | 2d2cab9d97d3e84e5b7158181523fe2c5bbffe85 (patch) | |
tree | 0a433b8997d16db0a4115106bb1c9764e826c4c8 /early-init.el | |
parent | apsodfiuadsfoiudsfpaoidsufpaosidufposdifuapsodifuapsodifu (diff) | |
download | emacs-2d2cab9d97d3e84e5b7158181523fe2c5bbffe85.tar.gz emacs-2d2cab9d97d3e84e5b7158181523fe2c5bbffe85.zip |
uhhh
Diffstat (limited to 'early-init.el')
-rw-r--r-- | early-init.el | 12 |
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 |