doomemacs/core/lib/macros-quickrun.el

18 lines
581 B
EmacsLisp
Raw Normal View History

2015-06-15 09:05:52 +02:00
;;; macros-quickrun.el
;;;###autoload
(defmacro define-builder! (mode command &optional build-file)
2015-06-15 09:05:52 +02:00
"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)))))
2015-12-09 01:54:30 -05:00
;;;###autoload
(defmacro define-repl! (mode command)
`(push '(,mode . ,command) rtog/mode-repl-alist))
2015-06-15 09:05:52 +02:00
(provide 'macros-quickrun)
;;; macros-quickrun.el ends here