diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 19:59:28 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 19:59:28 -0500 |
| commit | 08014b2f15e099a1c5e662a17a41290f37aeebf4 (patch) | |
| tree | fba90116d0bb59b90d57489bdc6bc47f853c5384 /modules/org-drill-config.el | |
| parent | 47f222f66d7d481fb0d50661d64f49440455ff6d (diff) | |
| download | dotemacs-08014b2f15e099a1c5e662a17a41290f37aeebf4.tar.gz dotemacs-08014b2f15e099a1c5e662a17a41290f37aeebf4.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/org-drill-config.el')
| -rw-r--r-- | modules/org-drill-config.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/org-drill-config.el b/modules/org-drill-config.el index b695619c..296b0550 100644 --- a/modules/org-drill-config.el +++ b/modules/org-drill-config.el @@ -110,7 +110,7 @@ With a prefix arg OTHER-DIR, prompt for the directory instead of `drill-dir'." "r" #'cj/drill-refile "R" #'org-drill-resume) -(keymap-set cj/custom-keymap "D" cj/drill-map) +(cj/register-prefix-map "D" cj/drill-map) (with-eval-after-load 'which-key (which-key-add-key-based-replacements |
