| git.druid.rocks | index | druid520 | radium | radium-project.el |
radium-project.el
;;; radium-project.el, project.el tuned for my repo layout -*- lexical-binding: t; -*-
(require 'project)
(require 'radium-build)
;; recognize a project root even without .git, for trees keyed only by
;; my mk build system, by ninja/meson, or by cfg.rp alone - the exact
;; same markers radium-build-root already uses (radium-build.el),
;; not a second, separately-maintained list: a project whose only
;; marker is cfg.rp or a bare mk/ directory (no mk.conf file) used to
;; build correctly via C-c b b (radium-build-root's own markers
;; already covered it) but wasn't a real project at all as far as
;; C-x p f/project-find-file or project-switch-project could tell,
;; since project-vc-extra-root-markers here was a separate, shorter
;; list that had drifted - found by actually comparing the two lists
;; side by side, not assumed in sync. this is a one-time snapshot
;; copy, not a live link to radium-build-markers - a later add-to-list
;; on radium-build-markers alone (from some other file) wouldn't reach
;; this variable either, the exact same gap this fixed in the first
;; place. radium-sc.el already knows this and updates both lists
;; explicitly for its own marker - any future one needs to do the same.
(setq project-vc-extra-root-markers radium-build-markers)
(with-eval-after-load 'consult
(define-key project-prefix-map "f" #'consult-find)
(define-key project-prefix-map "g" #'consult-grep))
(provide 'radium-project)