Skip to content

Commit

Permalink
Avoid reinitialize package-initialize
Browse files Browse the repository at this point in the history
Solve warning of emacs 27+ when in personal scripts it previously
already initialize it.
  • Loading branch information
ryukinix authored and bbatsov committed Jan 19, 2025
1 parent 868a6fd commit 3c74db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/prelude-packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

;; set package-user-dir to be relative to Prelude install path
(setq package-user-dir (expand-file-name "elpa" prelude-dir))
(package-initialize)

(unless package--initialized
(package-initialize))

;; install & enable use-package
(unless (package-installed-p 'use-package)
Expand Down

0 comments on commit 3c74db9

Please sign in to comment.