File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -7447,11 +7447,18 @@ Must be set before bootstrap."))
7447
7447
;; Warn the user if package.el was also loaded in the current session,
7448
7448
;; see <https://github.com/radian-software/straight.el/issues/1036>.
7449
7449
(let ((tips
7450
- (concat
7451
- "You may wish to delete ~/.emacs.d/elpa or add "
7452
- "(setq package-enable-at-startup nil) to "
7453
- "~/.emacs.d/early-init.el to avoid multiple versions "
7454
- "of the same packages being loaded.")))
7450
+ (format
7451
+ (concat
7452
+ "You may wish to delete %s or add "
7453
+ "(setq package-enable-at-startup nil) to "
7454
+ "%s to avoid multiple versions "
7455
+ "of the same packages being loaded.")
7456
+ (if (bound-and-true-p package-user-dir)
7457
+ (abbreviate-file-name package-user-dir)
7458
+ "~/.emacs.d/elpa")
7459
+ (if (bound-and-true-p early-init-file)
7460
+ (abbreviate-file-name early-init-file)
7461
+ "~/.emacs.d/early-init.el"))))
7455
7462
(if (and (featurep 'package)
7456
7463
package-enable-at-startup
7457
7464
(file-exists-p (bound-and-true-p package-user-dir)))
You can’t perform that action at this time.
0 commit comments