Pre-emptively init build system for active major modes

This commit is contained in:
Henrik Lissner 2016-08-21 16:57:31 +02:00
parent 8e37c4903d
commit bbc5493809

View file

@ -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