mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Pre-emptively init build system for active major modes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user