mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-08 23:40:24 -08:00
Sort package-selected-packages on save
This commit is contained in:
parent
9966db38b2
commit
a96dc984dd
1 changed files with 1 additions and 1 deletions
|
|
@ -1986,7 +1986,7 @@ Used to populate `package-selected-packages'."
|
|||
;; It is valid to set it to nil, for example when the last package
|
||||
;; is uninstalled. But it shouldn't be done at init time, to
|
||||
;; avoid overwriting configurations that haven't yet been loaded.
|
||||
(setq package-selected-packages value))
|
||||
(setq package-selected-packages (sort value #'string<)))
|
||||
(if after-init-time
|
||||
(customize-save-variable 'package-selected-packages package-selected-packages)
|
||||
(add-hook 'after-init-hook #'package--save-selected-packages)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue