diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-12 13:29:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-12 13:29:38 -0500 |
| commit | e18b7e46d480e12dde57be5acc20b4a6078fce61 (patch) | |
| tree | 9742ae07f98f38957c2e2f4db96b1aff27ad920d /modules/prog-webdev.el | |
| parent | 792b97b894927875c56d0d31a67bb49f5df2a25f (diff) | |
| download | dotemacs-e18b7e46d480e12dde57be5acc20b4a6078fce61.tar.gz dotemacs-e18b7e46d480e12dde57be5acc20b4a6078fce61.zip | |
refactor(org-drill): hoist the commands out of :config and clear the byte-compile warnings
The `cj/drill-*` defuns and `cj/drill-map` lived inside the `use-package org-drill` `:config` block, so the byte-compiler never registered them — every cross-reference between them warned ("function `cj/drill-this-file' is not known", and so on). I moved all of that to module top level, where the compiler sees it. The ten `(setq org-drill-...)` lines became a `:custom` block (no more "assignment to free variable"). Added `(require 'user-constants)` and `(require 'keybindings)` for `drill-dir` and `cj/custom-keymap`, plus `declare-function` for `org-drill`, `org-drill-resume`, `org-capture`, and `org-refile`. The module byte-compiles clean now, and `C-; D` still mounts the drill submenu with the same leaf keys.
I also gave `tests/test-org-drill-first-function.el` a `cj/custom-keymap` stub: its "loads without error" test does a bare `load` of the module, which now runs the keymap mount at load time instead of deferring it inside `:config`.
Diffstat (limited to 'modules/prog-webdev.el')
0 files changed, 0 insertions, 0 deletions
