diff options
| author | Craig Jennings <c@cjennings.net> | 2026-03-06 21:15:31 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-03-06 21:15:31 -0600 |
| commit | 729d3c80cff5ff9b9488939bcee6bc829ebebe91 (patch) | |
| tree | f2d38926957b3220c295a6969e75072addb66a3d /tests/testutil-ai-config.el | |
| parent | 066e1e0cfa53cae231a0879bf3c1ef71b73bcded (diff) | |
| download | dotemacs-729d3c80cff5ff9b9488939bcee6bc829ebebe91.tar.gz dotemacs-729d3c80cff5ff9b9488939bcee6bc829ebebe91.zip | |
refactor(gptel): lazy-load gptel-magit, rebind rewrite/context keys
- Replace use-package gptel-magit hook with autoloads via
with-eval-after-load 'magit (loads gptel only on key press)
- Move org header defuns above use-package to fix load order
- Set gptel-include-reasoning to "*AI-Reasoning*" buffer
- Rebind rewrite to C-; a r, clear context to C-; a c
- Add test-ai-config-gptel-magit-lazy-loading.el (8 tests)
- Mark all ai-config cleanup items DONE in todo.org
Diffstat (limited to 'tests/testutil-ai-config.el')
| -rw-r--r-- | tests/testutil-ai-config.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/testutil-ai-config.el b/tests/testutil-ai-config.el index 4839efd5..e8953389 100644 --- a/tests/testutil-ai-config.el +++ b/tests/testutil-ai-config.el @@ -63,9 +63,10 @@ (defun gptel-prompts-add-update-watchers (&rest _) "Stub." nil) (provide 'gptel-prompts) -;; Stub gptel-magit -(defun gptel-magit-install (&rest _) "Stub." nil) -(provide 'gptel-magit) +;; NOTE: gptel-magit is NOT stubbed here. ai-config.el now uses +;; with-eval-after-load 'magit instead of use-package gptel-magit, +;; so the magit integration only activates when magit is provided. +;; See test-ai-config-gptel-magit-lazy-loading.el for magit stub tests. ;; Stub ai-conversations (provide 'ai-conversations) |
