Files
.emacs.d/modules/tools/siren-makefile-executor.el
Jim Myhrberg 4cb9c3d3a0 feat(makefile): improve makefile execution and bind it to C-c C-m
Use the makefile-executor package instead of helm-make to execute make
targets. But we still rely on helm-make due to it's more efficient
available targets lookup function compared to that of makefile-executor.

Running make targets is bound to C-c C-m now which is nice and fast, and
completes via completing-read, which is currently giving a better
suggested candidates via selectrum+orderless than helm-make does.

And helm-make is still available via the old C-c h m keybinding.
2021-09-13 12:38:34 +01:00

25 lines
644 B
EmacsLisp

;;; siren-makefile-executor.el --- jimeh's Emacs Siren: makefile-executor configuration.
;;; Commentary:
;; Basic configuration for makefile-executor.
;;; Code:
(require 'helm-make)
(use-package makefile-executor
:hook
(makefile-mode . makefile-executor-mode)
:bind
("C-c C-m" . makefile-executor-execute-project-target)
:config
;; Replace get targets function with that from helm-make as it faster and more
;; efficient by not needing to write any temporary files to disk.
(defalias 'makefile-executor-get-targets 'helm--make-target-list-qp))
(provide 'siren-makefile-executor)
;;; siren-makefile-executor.el ends here