mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -123,7 +123,7 @@
|
|||||||
(defconst doom-emacs-dir user-emacs-directory
|
(defconst doom-emacs-dir user-emacs-directory
|
||||||
"The path to the currently loaded .emacs.d directory. Must end with a slash.")
|
"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.")
|
"The root directory of Doom's core files. Must end with a slash.")
|
||||||
|
|
||||||
(defconst doom-modules-dir (expand-file-name "modules/" doom-emacs-dir)
|
(defconst doom-modules-dir (expand-file-name "modules/" doom-emacs-dir)
|
||||||
|
Reference in New Issue
Block a user