From bbc5493809fe950246e0b13e35de7c3f8779d0c7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 Aug 2016 16:57:31 +0200 Subject: [PATCH] Pre-emptively init build system for active major modes --- core/defuns/macros-eval.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/defuns/macros-eval.el b/core/defuns/macros-eval.el index 8d48c0b39..439b59032 100644 --- a/core/defuns/macros-eval.el +++ b/core/defuns/macros-eval.el @@ -10,6 +10,8 @@ check to make sure they exist in the project root." (when (or (null ,build-file) (doom/project-has-files ,build-file)) (setq doom--build-command '(,command . ,build-file)))) + ,(when (eq major-mode mode) + (funcall fn)) (add-hook! ,mode ',fn)))) ;;;###autoload