From 5ca97b9ec8bc97a81ca2599bf386344b9ca29783 Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Tue, 6 May 2025 11:35:47 -0600 Subject: [PATCH] feat(emacs): multi-projection --- .../users/crumb/emacs/modules/syd-projects.el | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/modules/home/users/crumb/emacs/modules/syd-projects.el b/modules/home/users/crumb/emacs/modules/syd-projects.el index 6214333..d6e6600 100755 --- a/modules/home/users/crumb/emacs/modules/syd-projects.el +++ b/modules/home/users/crumb/emacs/modules/syd-projects.el @@ -39,28 +39,37 @@ ;; Projection provides a Projectile-like project management library atop ;; Emacs built-in project.el. It's more lightweight, while still featureful. (use-package projection + :straight (:type git + :host github + :repo "msyds/projection" + :files (:defaults "src/*.el")) ;; Enable the `projection-hook' feature. :hook (after-init . global-projection-hook-mode) :general (:keymaps 'syd-leader-project-map - "R" #'projection-commands-run-project) - ;; Require projections immediately after project.el. - :config - (with-eval-after-load 'project - (require 'projection))) + "R" #'projection-commands-run-project + "M" #'projection-multi-compile + "T" #'projection-commands-test-project)) ;; Allow interactively selecting available compilation targets from the ;; current project type. (use-package projection-multi - :after projection + :straight (:type git + :host github + :repo "msyds/projection" + :files (:defaults "src/projection-multi/*.el")) :general (:keymaps 'syd-leader-project-map - "M" #'projection-multi-projection)) + "M" #'projection-multi-compile) + :after projection + :config + (require 'projection-multi-bb) + (setq projection-multi-bb-executable (executable-find "bb"))) -;; Embark integration for projection-multi. -(use-package projection-multi-embark - :after (embark projection-multi) - ;; Add the projection set-command bindings to - ;; `compile-multi-embark-command-map'. - :config (projection-multi-embark-setup-command-map)) +;; ;; Embark integration for projection-multi. +;; (use-package projection-multi-embark +;; :after (embark projection-multi) +;; ;; Add the projection set-command bindings to +;; ;; `compile-multi-embark-command-map'. +;; :config (projection-multi-embark-setup-command-map)) (use-package skeletor :commands (skeletor-create-project-at skeletor-create-project)