fix: remove outdated uses of user-emacs-directory

Doom changes user-emacs-directory (see 46844b5 for explanation), so
doom-emacs-dir should be used to refer to your $EMACSDIR instead.

Fix: #6530
Ref: 46844b55de
This commit is contained in:
Henrik Lissner 2022-07-04 02:34:51 +02:00
parent 5a98d59afc
commit 442d607ec0
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
4 changed files with 6 additions and 6 deletions

View file

@ -125,7 +125,7 @@ in."
(dir (if (file-directory-p xdg-dir)
xdg-dir
doom-dir)))
(when (file-equal-p dir user-emacs-directory)
(when (file-equal-p dir doom-emacs-dir)
(print! (error "Doom was cloned to %S, not ~/.emacs.d or ~/.config/emacs"
(path dir)))
(explain! "Doom's source and your private Doom config have to live in separate directories. "
@ -140,7 +140,7 @@ in."
(explain! "The second directory will be ignored, as it has lower precedence.")))
(print! (start "Checking for stale elc files..."))
(elc-check-dir user-emacs-directory)
(elc-check-dir doom-emacs-dir)
(print! (start "Checking for problematic git global settings..."))
(if (executable-find "git")