aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-case.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
commita72e944a40486400e3c17fd26dba8ebcf01a0396 (patch)
tree757508d97ab57ee00813bc8252b9967ae48f9d46 /modules/custom-case.el
parent9135d7f8ee875a50a92a52de9a95cafbf3831c78 (diff)
downloaddotemacs-a72e944a40486400e3c17fd26dba8ebcf01a0396.tar.gz
dotemacs-a72e944a40486400e3c17fd26dba8ebcf01a0396.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/custom-case.el')
-rw-r--r--modules/custom-case.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/custom-case.el b/modules/custom-case.el
index d8c60b554..d30ebf942 100644
--- a/modules/custom-case.el
+++ b/modules/custom-case.el
@@ -129,7 +129,7 @@ short prepositions, and all articles are considered minor words."
"t" #'cj/title-case-region
"u" #'cj/upcase-dwim
"l" #'cj/downcase-dwim)
-(keymap-set cj/custom-keymap "c" cj/case-map)
+(cj/register-prefix-map "c" cj/case-map)
(with-eval-after-load 'which-key
(which-key-add-key-based-replacements