Refresh packages the first time Emacs is executed
This commit is contained in:
10
init.el
10
init.el
@@ -67,11 +67,11 @@
|
|||||||
(fboundp 'elpaca))))
|
(fboundp 'elpaca))))
|
||||||
;; Initialize and refresh package contents again if needed
|
;; Initialize and refresh package contents again if needed
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(when (version< emacs-version "29.1")
|
(unless package-archive-contents
|
||||||
(unless (package-installed-p 'use-package)
|
(package-refresh-contents))
|
||||||
(unless package-archive-contents
|
(when (and (version< emacs-version "29.1")
|
||||||
(package-refresh-contents))
|
(package-installed-p 'use-package))
|
||||||
(package-install 'use-package)))
|
(package-install 'use-package))
|
||||||
(require 'use-package))
|
(require 'use-package))
|
||||||
|
|
||||||
;;; Minibuffer
|
;;; Minibuffer
|
||||||
|
|||||||
Reference in New Issue
Block a user