Delete old packages when updating with auto-package-update

This commit is contained in:
Adam Goldsmith 2021-06-15 16:57:31 -04:00
parent 674e7dc5aa
commit 4a4fe4e62a

View File

@ -339,6 +339,7 @@
(use-package auto-package-update :ensure (use-package auto-package-update :ensure
:commands auto-package-update-cli :commands auto-package-update-cli
:config :config
(setq auto-package-update-delete-old-versions t)
;; wrap apu-now to print to stdout for batch calling ;; wrap apu-now to print to stdout for batch calling
(defun auto-package-update-cli () (defun auto-package-update-cli ()
(cl-letf (((symbol-function 'apu--write-results-buffer) 'princ)) (cl-letf (((symbol-function 'apu--write-results-buffer) 'princ))