diff options
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 87ae351..bd4ac42 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -59,6 +59,15 @@ ;; package.el (when (require 'package) + ;; Don't clutter custom.el with `package-selected-packages`; I want + ;; to exclusively use use-package for this. + (defun package--save-selected-packages--nocustom (&optional value) + "Set `package-selected-packages' to VALUE." + (when value + (setq package-selected-packages value))) + (advice-add 'package--save-selected-packages + :override #'package--save-selected-packages--nocustom) + ;; Add Melpa repos. (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) (add-to-list 'package-archives |