mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Write core initfiles + defuns
This commit is contained in:
13
core/lib/macros-quickrun.el
Normal file
13
core/lib/macros-quickrun.el
Normal file
@ -0,0 +1,13 @@
|
||||
;;; macros-quickrun.el
|
||||
|
||||
;;;###autoload
|
||||
(defmacro build-for! (mode command build-file)
|
||||
"Register major/minor MODE with build COMMAND. If FILES are provided, do an
|
||||
additional check to make sure they exist in the project root."
|
||||
`(add-hook! ,mode
|
||||
(when (or (null ,build-file)
|
||||
(narf/project-has-files ,build-file))
|
||||
(setq narf--build-command '(,command . ,build-file)))))
|
||||
|
||||
(provide 'macros-quickrun)
|
||||
;;; macros-quickrun.el ends here
|
Reference in New Issue
Block a user