From 2d53fe6123e5640a13cc7ae0e43a5441f634aa6d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 2 Aug 2022 20:19:03 +0200 Subject: [PATCH] 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). --- lisp/doom.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom.el b/lisp/doom.el index 5d9c23964..bc0a1a7ea 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -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)