Files
.emacs.d/modules/languages/siren-makefile.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

31 lines
676 B
EmacsLisp

;;; siren-makefile.el --- jimeh's Emacs Siren: makefile-mode configuration.
;;; Commentary:
;; Basic configuration for makefile-mode.
;;; Code:
(require 'siren-display-indentation)
(require 'siren-makefile-executor)
(use-package make-mode
:straight (:type built-in)
:hook
(makefile-mode . siren-makefile-mode-setup)
:bind
(:map makefile-mode-map
("C-c C-m" . makefile-executor-execute-project-target))
:init
(add-to-list 'siren-indent-sensitive-modes 'makefile-mode)
(defun siren-makefile-mode-setup ()
(subword-mode +1)
(siren-display-indentation -1)
(setq tab-width 4)))
(provide 'siren-makefile)
;;; siren-makefile.el ends here