From 465122320d4cd9011f251a92c80d4c80107e5b1d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 23 Aug 2019 20:30:39 -0400 Subject: [PATCH] Byte-compile Doom in the correct order That is, modules should be byte-compiled in the order they're in in your doom! block. --- core/cli/byte-compile.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/cli/byte-compile.el b/core/cli/byte-compile.el index 6bd78473f..be3cb52bb 100644 --- a/core/cli/byte-compile.el +++ b/core/cli/byte-compile.el @@ -101,9 +101,10 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files." ;; If no targets were supplied, then we use your module list. (appendq! target-dirs (list doom-core-dir) - ;; Omit `doom-private-dir', which is always first - (cl-remove-if-not (lambda (path) (file-in-directory-p path doom-emacs-dir)) - (nreverse (cdr (doom-module-load-path)))))) + (nreverse + (cl-remove-if-not (lambda (path) (file-in-directory-p path doom-emacs-dir)) + ;; Omit `doom-private-dir', which is always first + (cdr (doom-module-load-path)))))) ;; Assemble el files we want to compile; taking into account that MODULES ;; may be a list of MODULE/SUBMODULE strings from the command line.