From c2385d99b382eeb82082bf338d3ae429c96aede5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 18 Mar 2023 20:19:03 -0400 Subject: emacs: Fuss with the use-package hack --- .config/emacs/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 16555ce..0e305a5 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -121,13 +121,13 @@ (when (assoc package (bound-and-true-p package-pinned-packages)) (package-read-all-archive-contents)) - (if (assoc package package-archive-contents) - (package-install package) + (unless (assoc package package-archive-contents) (package-refresh-contents) (when (assoc package (bound-and-true-p package-pinned-packages)) (package-read-all-archive-contents)) (package-install package)) + (package-install package) t) (error (display-warning 'use-package -- cgit v1.2.3-54-g00ecf