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