homeinit: Cleanup pacman's orphan packages

master
Pierre Neidhardt 2018-01-11 11:32:28 +01:00
parent 92930615ba
commit 1126d7a2b1
2 changed files with 6 additions and 1 deletions

View File

@ -217,7 +217,8 @@
;;; Mail
;;; mu4e is usually site-local and not part of ELPA.
(when (delq nil (mapcar (lambda (path) (string-match "/mu4e/\\|/mu4e$" path)) load-path))
(nconc package-selected-packages '(helm-mu mu4e-maildirs-extension)))
;; (nconc package-selected-packages '(mu4e-maildirs-extension))
(nconc package-selected-packages '(helm-mu)))
(with-eval-after-load 'mu4e (require 'init-mu4e))
(autoload 'mu4e-headers "mu4e")

View File

@ -72,6 +72,10 @@ if command -v pacman >/dev/null 2>&1; then
if $OPT_UPDATE && [ -f ~/.pkglists/arch-aur ]; then
pacaur --noconfirm --noedit -y --needed "$(cat ~/.pkglists/arch-aur)"
fi
pacman_list=$(pacman -Qdtq)
if [ -n "$pacman_list" ]; then
sudo pacman --noconfirm -Rs "$pacman_list"
fi
fi
echo "==> 'temp' folder"