aboutsummaryrefslogtreecommitdiff
path: root/modules/vc-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 19:59:28 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 19:59:28 -0500
commit78cdebbac503a50ac8d2ab9b9b04020d3f7a9aff (patch)
treeadcb25155a0d32d3374db5109be91d54ce4f4187 /modules/vc-config.el
parent7df6fb929abdb4790805ceeaca95f1518d5217cf (diff)
downloaddotemacs-78cdebbac503a50ac8d2ab9b9b04020d3f7a9aff.tar.gz
dotemacs-78cdebbac503a50ac8d2ab9b9b04020d3f7a9aff.zip
refactor(load-graph): route C-; registration through the keymap API
Migrated all 31 cj/custom-keymap registration sites across 24 modules from direct (keymap-set cj/custom-keymap ...) calls to cj/register-prefix-map and cj/register-command. Consumers no longer reference cj/custom-keymap directly, so keybindings.el is the sole owner of the C-; prefix and modules reach it only through the API (each already requires keybindings from Phase 2). Behavior-preserving: I dumped every C-; binding before and after the migration and they're identical: 279 bindings, each resolving to the same command. The which-key label blocks are untouched, since they use string key descriptions and never assumed the keymap existed. I byte-compiled all 24 files (no new free-variable warnings, because the cj/custom-keymap references are gone), and make test, validate-modules, and an init load all pass.
Diffstat (limited to 'modules/vc-config.el')
-rw-r--r--modules/vc-config.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/vc-config.el b/modules/vc-config.el
index 8b82b4cc6..654116c59 100644
--- a/modules/vc-config.el
+++ b/modules/vc-config.el
@@ -244,7 +244,7 @@ repository's README if found, else `dired's the clone."
(keymap-set cj/vc-map "i" cj/vc-issues-map)
-(keymap-set cj/custom-keymap "v" cj/vc-map)
+(cj/register-prefix-map "v" cj/vc-map)
(with-eval-after-load 'which-key
(which-key-add-key-based-replacements
"C-; v" "version control menu"