refactor: resolve doom-core-dir relative to source file

Instead of relative to doom-emacs-dir, which may or may not be where
this core lives (made more of a possibility once core has a repo to
itself).
This commit is contained in:
Henrik Lissner 2022-08-02 20:19:03 +02:00
parent 58992a1885
commit 2d53fe6123
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -123,7 +123,7 @@
(defconst doom-emacs-dir user-emacs-directory
"The path to the currently loaded .emacs.d directory. Must end with a slash.")
(defconst doom-core-dir (expand-file-name "lisp/" doom-emacs-dir)
(defconst doom-core-dir (file-name-directory load-file-name)
"The root directory of Doom's core files. Must end with a slash.")
(defconst doom-modules-dir (expand-file-name "modules/" doom-emacs-dir)