summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-03-06 19:18:27 -0600
committerCraig Jennings <c@cjennings.net>2026-03-06 19:18:27 -0600
commit1e0a5d35d31651b09f8d3bdfac07927cebebda5f (patch)
tree0370e9d79e4d88693facba1d9c176a0b69a05374
parent5a7ea4e0123ecee298437fb2be8d16d3ee9cf29d (diff)
fix(gptel): remove duplicate backend setter, fix commentary keybindings
Remove redundant gptel-backend setq and orphaned section header. Fix commentary keybinding references: M-a → C-; a, correct buffer add (.) and rewrite (&) bindings.
-rw-r--r--modules/ai-config.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/modules/ai-config.el b/modules/ai-config.el
index c2b9b9f6..4fd32c8a 100644
--- a/modules/ai-config.el
+++ b/modules/ai-config.el
@@ -5,8 +5,8 @@
;; Configuration for AI integrations in Emacs, focused on GPTel.
;;
;; Main Features:
-;; - Quick toggle for AI assistant window (F9 or M-a t)
-;; - Custom keymap (M-a prefix, overrides 'backwards-sentence') for AI-related commands.
+;; - Quick toggle for AI assistant window (F9 or C-; a t)
+;; - Custom keymap (C-; a prefix) for AI-related commands.
;; - Enhanced org-mode conversation formatting with timestamps
;; allows switching models and easily compare and track responses.
;; - Various specialized AI directives (coder, reviewer, etc.)
@@ -17,13 +17,13 @@
;; Basic Workflow
;;
;; Using a side-chat window:
-;; - Launch GPTel via F9 or M-a t, and chat in the AI-Assistant side window (C-<return> to send)
-;; - Change system prompt (expertise, personalities) with M-a p
-;; - Add context from files (M-a f) or buffers (M-a b)
-;; - Save conversations with M-a s, load previous ones with M-a l
-;; - Clear the conversation and start over with M-a x
+;; - Launch GPTel via F9 or C-; a t, and chat in the AI-Assistant side window (C-<return> to send)
+;; - Change system prompt (expertise, personalities) with C-; a p
+;; - Add context from files (C-; a f) or current buffer (C-; a .)
+;; - Save conversations with C-; a s, load previous ones with C-; a l
+;; - Clear the conversation and start over with C-; a x
;; Or in any buffer:
-;; - Add directive as above, and select a region to rewrite with M-a r.
+;; - Add directive as above, and select a region to rewrite with C-; a &.
;;
;;; Code:
@@ -289,9 +289,8 @@ Works for any buffer, whether it's visiting a file or not."
"Alist of GPTel backends for interactive switching.")
(setq gptel-confirm-tool-calls nil) ;; allow tool access by default
- ;;; ---------------------------- Backend Management ---------------------------
- (setq gptel-backend gptel-claude-backend) ;; use Claude as default
+
;;; -------------------------- Org Header Construction --------------------------