diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-18 20:19:03 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-18 20:19:03 -0400 |
commit | c2385d99b382eeb82082bf338d3ae429c96aede5 (patch) | |
tree | 9893dd8083573c449d5474af6ee72eae254407f2 /.config | |
parent | 2b37a61c3d0ba5a84ae11040dd63eee9ed73ada7 (diff) |
emacs: Fuss with the use-package hack
Diffstat (limited to '.config')
-rw-r--r-- | .config/emacs/init.el | 4 |
1 files changed, 2 insertions, 2 deletions
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 |