Pre-emptively init build system for active major modes
This commit is contained in:
parent
8e37c4903d
commit
bbc5493809
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue