aboutsummaryrefslogtreecommitdiff
path: root/tests/test-keyboard-compat-setup.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 12:45:40 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 12:45:40 -0500
commit9d35c65856802c2baca525970c1f136571ee28e6 (patch)
tree7f5b55652c57c16924429832fd7be603a98cb07c /tests/test-keyboard-compat-setup.el
parenta42ebafc5c54766aa5a9eaf98e3ec9c8f4a43b1c (diff)
downloaddotemacs-9d35c65856802c2baca525970c1f136571ee28e6.tar.gz
dotemacs-9d35c65856802c2baca525970c1f136571ee28e6.zip
feat(org-drill): drill any Org file from anywhere
`org-drill` has no fixed home — with `org-drill-scope` left at its default it just drills the current buffer. So the only thing in my config tied to a location was `cj/drill-start`, which forced a pick from `drill-dir`. `C-; D f` (`cj/drill-this-file`) drills whatever Org buffer is current, so a drill file living anywhere works. It `user-error`s when the buffer isn't an Org buffer. `C-u C-; D s` (and `C-u C-; D e`) now prompts for the directory to pick from instead of always using `drill-dir`. Bare `C-; D s` is unchanged. I pulled the picking logic into `cj/--drill-files-in`, `cj/--drill-pick-dir`, and `cj/--drill-pick-file` so it's unit-testable. New `tests/test-org-drill-config.el`: 12 ERT tests over those helpers, `cj/drill-this-file`, `cj/drill-start`, and the keymap.
Diffstat (limited to 'tests/test-keyboard-compat-setup.el')
0 files changed, 0 insertions, 0 deletions