diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-19 07:06:45 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-19 07:06:45 -0500 |
| commit | 85d9127ea6a5cd624dd4567618ce87b12e491e8c (patch) | |
| tree | a1d5ae757b83ccdfaa51b3062e9febdc6c4844d5 /modules/keybindings.el | |
| parent | cb9fe91fbb35aef0a9de578a66e5f59df964321c (diff) | |
| download | dotemacs-85d9127ea6a5cd624dd4567618ce87b12e491e8c.tar.gz dotemacs-85d9127ea6a5cd624dd4567618ce87b12e491e8c.zip | |
refactor(transcription): consolidate backends into descriptor alist
Introduce cj/--transcription-backends alist mapping each backend to
(:script :auth-host :env-var). Replace:
- two near-identical cj/--get-{openai,assemblyai}-api-key functions with
a single parameterized cj/--auth-source-password helper
- the pcase in cj/--transcription-script-path with an alist lookup
- the pcase block in cj/--start-transcription-process that assembled
the API-key env var with an alist-driven assembly
Adding a new backend is now a single line in the alist. The existing
tests plus retargeted API-key tests (now 10, covering the parameterized
helper and the descriptor data) verify no behavior change.
Diffstat (limited to 'modules/keybindings.el')
0 files changed, 0 insertions, 0 deletions
