From 81e7ec3df0a430985a9a95b027571bd5fd713246 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 19 Apr 2020 01:17:55 -0400 Subject: [PATCH] Add config for auto-package-update with cli output wrapper function --- .emacs.d/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2714d74..93dad73 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -315,6 +315,14 @@ (add-hook 'yaml-mode-hook #'(lambda () (setq-local show-trailing-whitespace t)))) +(use-package auto-package-update :ensure t + :commands auto-package-update-cli + :config + ;; wrap apu-now to print to stdout for batch calling + (defun auto-package-update-cli () + (cl-letf (((symbol-function 'apu--write-results-buffer) 'princ)) + (auto-package-update-now)))) + ;;;; external packages (required) (use-package delight :ensure :demand)