From 5f00926920db886eb4063e3dc80fab0b0a0855d2 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Thu, 11 Aug 2022 15:22:40 +0100 Subject: Update upgrade packages function --- .emacs.d/lisp/init-packages.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/lisp/init-packages.el b/.emacs.d/lisp/init-packages.el index 9eea07e..a7db5d8 100644 --- a/.emacs.d/lisp/init-packages.el +++ b/.emacs.d/lisp/init-packages.el @@ -35,6 +35,7 @@ :config ;; TODO make a copy of the built-in check for system packages work instead (defvar my/system-packages '(vterm)) + ;; emacs -Q --batch -L "~/.emacs.d/lisp/" -l "init-packages.el" -f "my/upgrade-packages" (defun my/upgrade-packages () (interactive) (epl-refresh) @@ -48,7 +49,9 @@ (dolist (upgrade upgrades) (epl-package-install (epl-upgrade-available upgrade) 'force) (epl-package-delete (epl-upgrade-installed upgrade)))) - (message "Package upgrade finished."))) + (message "Package upgrade finished.") + ;; TODO does this help async native-comp to finish when called from the command line? + (sit-for 30))) (provide 'init-packages) ;;; init-packages.el ends here -- cgit 1.4.1-2-gfad0