summaryrefslogtreecommitdiff
path: root/modules/org-drill-config.el
Commit message (Collapse)AuthorAgeFilesLines
* docs(load-graph): classify Org modulesCraig Jennings12 days1-0/+9
| | | | | | Seventh classification batch: the thirteen Org modules — config, agenda, babel, capture, contacts, drill, export, noter, refile, reveal, roam, webclipper, hugo. I annotated each header, added a Batch 7 table to the inventory, and extended the validation allowlist. 65 of 102 modules are now classified. The daily workflows (config, agenda, capture, refile, roam) keep their eager reason per the spec's Phase 6 target. Babel and contacts move to after-load; export, reveal, drill, noter, webclipper, and hugo become command-loaded. The agenda and refile idle-timer caches are recorded as the side effects the spec already tracks for cache-lifecycle work. No new hidden dependencies.
* refactor(org-drill): share one validated drill-file selectorCraig Jennings13 days1-1/+14
| | | | org-capture-config.el and org-drill-config.el each scanned drill-dir with an inline directory-files call, so a missing, empty, or unreadable drill-dir surfaced as a low-level directory-files error or an empty completing-read, depending on which command ran. Added cj/--drill-files-or-error, the single validated entry point: it signals a clear user-error when the directory is missing, unreadable, or has no drill files, and otherwise returns the list. cj/--drill-pick-file and both drill capture templates now route through it. The pure cj/--drill-files-in primitive and its tests are unchanged. Tests cover missing dir, empty dir, a non-org-only dir, and a normal listing.
* refactor(org-drill): hoist the commands out of :config and clear the ↵Craig Jennings2026-05-121-88/+94
| | | | | | | | 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`.
* feat(org-drill): drill any Org file from anywhereCraig Jennings2026-05-121-15/+41
| | | | | | | | `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.
* chore(org-drill): use local :load-path checkout for active devCraig Jennings2026-05-091-4/+4
| | | | Switches from `:vc` to `:load-path "~/code/org-drill"` so I can iterate against the local clone. The use-package block keeps the `:vc` form commented immediately above, ready to flip back when the dev work lands.
* chore(deps): add commented :load-path hints for local-dev swapsCraig Jennings2026-04-301-0/+1
| | | | | | | | | | | | Each :vc-installed package whose source repo is also cloned under ~/code now carries a commented :load-path line directly under the :vc form. Uncomment the :load-path and comment the :vc to flip into local development without rewriting the use-package block. Covered: gloss, org-drill, wttrin (emacs-wttrin), chime. Skipped: org-msg. The previous local clone at ~/code/org-msg is no longer present; if it gets re-cloned later, add the same hint there.
* chore(deps): point org-drill :vc at cjennings.net primaryCraig Jennings2026-04-291-1/+1
| | | | The cjennings.net bare for org-drill has a GitHub mirror as of today's earlier remote migration. Update the :vc URL in modules/org-drill-config.el to point at the primary instead of the mirror so a fresh install clones from the source-of-truth.
* fix(org-drill): switch from local load-path to VC package installCraig Jennings2026-01-271-5/+3
| | | | | Use :vc to install org-drill from GitHub instead of :load-path to local clone. Add dupre color palette reference image.
* feat(fonts): Update fonts to Berkeley Mono + Lexend, simplify org-drill configCraig Jennings2025-11-121-28/+9
| | | | | | | | | | | | | | | | Font changes: - Set Berkeley Mono + Lexend as default fonts - Updated EBook preset to use Lexend - Created FiraCode preset preserving old defaults - Installed new fonts: Charis SIL, Bitstream Vera, Literata, Lexend Org-drill changes: - Removed fontaine-dependent font switching code - Now uses org-drill's built-in display management - Configured 24-point font, variable-pitch, hidden modeline - Added comprehensive tests for display management (10 tests, all passing) org-drill now loads from local ~/code/org-drill for development.
* org-drill-config: enhance org-drill display settingsCraig Jennings2025-11-111-2/+34
| | | | | | | | Added display customization for org-drill cards, including larger text and proportional font. Adjusted session limits to 100 cards and 30 minutes. Integrated a hook to apply these changes during drill sessions. Updated org-drill package configuration to use the newest revision from the main branch.
* feat:which-key: Add descriptive labels for custom keymapsCraig Jennings2025-10-271-1/+7
| | | | | | | | | | | | Enhance which-key integration by providing detailed descriptions for new key bindings across multiple modules. This improves the usability of custom keymaps by clarifying the purpose of each keybinding, making it easier for users to navigate and understand different menus and options available within the configuration. This update ensures that all custom keymaps now display a descriptive label in the which-key popup to explain their functionality, aiding users in identifying keymap purposes promptly.
* refactor:keymaps: Replace define-prefix-command with defvar-keymapCraig Jennings2025-10-251-9/+12
| | | | | | | | | | Refactor the keymap definitions across multiple modules by replacing `define-prefix-command` with `defvar-keymap`. This simplifies the keymap setup and integrates better with the `which-key` package for enhanced documentation and usability. Updated modules include custom-ordering, custom-text-enclose, custom-whitespace, mail-config, music-config, org-drill-config, test-runner, and vc-config.
* feat:org-drill: Add cj/drill-start command to autoloadCraig Jennings2025-10-251-1/+1
| | | | | Extend the use-package setup to include the new command `cj/drill-start` in addition to `org-drill`.
* refactor:org-modules: Improve org-mode configurationCraig Jennings2025-10-231-11/+0
| | | | | | | | Remove redundant declarations and reorganize settings for clarity. Centralize org-mode customizations and use `use-package` for streamlined loading and configuration. Remove backward-compatible safeguards and reduce inline comments for cleaner code. Optimize key mappings and simplify the setup of org-related packages.
* feat: org-capture: Add drill capture helpers and templatesCraig Jennings2025-10-201-48/+31
| | | | | | | | | | | | Introduce functions `cj/drill-source-link` and `cj/drill-answer-content` for generating source links and content in org-drill captures. Expand org-capture-templates with new entries for drill questions and PDF captures. Adjust key mappings with `keymap-global-set` for task capture. Enhance the org-drill configuration with new keybindings using `keymap-set`. Remove old capture template setup and update initialization sequences.
* maint: org-dir: removed disabled code, deferred package loadCraig Jennings2025-10-181-10/+2
|
* changing repositoriesCraig Jennings2025-10-121-0/+109