Skip to content

Commit

Permalink
Use customize-save-variable to set and save package-selected-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Jul 12, 2024
1 parent 2ed4750 commit 5852315
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions async-package.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ Argument ERROR-FILE is the file where errors are logged, if some."
(delete-file error-file)
(async-package--modeline-mode -1))
(when result
(setq package-selected-packages
(append result package-selected-packages))
(when (eq action 'install)
(customize-save-variable 'package-selected-packages
(append result package-selected-packages)))
(package-initialize) ; load packages.
(async-package--modeline-mode -1)
(message "%s %s packages done" action-string (length packages))
Expand Down

0 comments on commit 5852315

Please sign in to comment.