From 08014b2f15e099a1c5e662a17a41290f37aeebf4 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 24 May 2026 19:59:28 -0500 Subject: 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. --- modules/mail-config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mail-config.el') diff --git a/modules/mail-config.el b/modules/mail-config.el index e1ebdfce..a498844e 100644 --- a/modules/mail-config.el +++ b/modules/mail-config.el @@ -403,7 +403,7 @@ Prompts user for the action when executing." "d" cj/mail-dmail-map "g" cj/mail-gmail-map "s" #'cj/mu4e-save-attachment-here) - (keymap-set cj/custom-keymap "e" cj/email-map) + (cj/register-prefix-map "e" cj/email-map) (with-eval-after-load 'which-key (which-key-add-key-based-replacements "C-; e" "email menu" -- cgit v1.2.3