Add config for auto-package-update with cli output wrapper function
This commit is contained in:
parent
8944a4d47f
commit
81e7ec3df0
@ -315,6 +315,14 @@
|
|||||||
(add-hook 'yaml-mode-hook
|
(add-hook 'yaml-mode-hook
|
||||||
#'(lambda () (setq-local show-trailing-whitespace t))))
|
#'(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)
|
;;;; external packages (required)
|
||||||
(use-package delight :ensure :demand)
|
(use-package delight :ensure :demand)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user