branch: elpa/aidermacs
commit 778ecf6fb53b0feb45a52772c42cd9d9ee2f78d3
Author: tninja <tni...@gmail.com>
Commit: tninja <tni...@gmail.com>

    feat: move read-only command and update default model to gemini
    
    docs(readme): update command integration description
---
 README.org    | 2 +-
 aider-doom.el | 7 +++++++
 aider.el      | 9 +--------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/README.org b/README.org
index e4e14396dd..2563d1d6df 100644
--- a/README.org
+++ b/README.org
@@ -15,7 +15,7 @@
 
 [[file:./transient_menu.png]]
 
-- Following command integrated to aider session
+- Following command integrated to aider menu
 
 *** Aider session management:
   - (`aider-run-aider`): Create a comint-based, *git repo specific aider 
session* for interactive conversation.
diff --git a/aider-doom.el b/aider-doom.el
index ee37bd70db..769c165275 100644
--- a/aider-doom.el
+++ b/aider-doom.el
@@ -56,6 +56,13 @@
                    :desc "Exit Aider" "x" #'aider-exit
                    ))))
 
+;; Function to send "/read <current buffer file full path>" to corresponding 
aider buffer
+;;;###autoload
+(defun aider-current-file-read-only ()
+  "Send the command \"/read-only <current buffer file full path>\" to the 
corresponding aider comint buffer. This is only useful for doom menu now"
+  (interactive)
+  (aider-add-or-read-current-file "/read-only"))
+
 ;; Add the setup function to appropriate hooks
 (add-hook 'find-file-hook #'aider-doom-setup-keys)
 (add-hook 'dired-mode-hook #'aider-doom-setup-keys)
diff --git a/aider.el b/aider.el
index e6b38ea158..f0238408c0 100644
--- a/aider.el
+++ b/aider.el
@@ -26,7 +26,7 @@
   :type 'string
   :group 'aider)
 
-(defcustom aider-args '("--model" "gpt-4o-mini")
+(defcustom aider-args '("--model" "gemini/gemini-exp-1206")
   "Arguments to pass to the Aider command."
   :type '(repeat string)
   :group 'aider)
@@ -260,13 +260,6 @@ COMMAND should be a string representing the command to 
send."
   (interactive)
   (aider-add-or-read-current-file "/add"))
 
-;; Function to send "/read <current buffer file full path>" to corresponding 
aider buffer
-;;;###autoload
-(defun aider-current-file-read-only ()
-  "Send the command \"/read-only <current buffer file full path>\" to the 
corresponding aider comint buffer. This is only useful for doom menu now"
-  (interactive)
-  (aider-add-or-read-current-file "/read-only"))
-
 ;; New function to add files in all buffers in current emacs window
 ;;;###autoload
 (defun aider-add-files-in-current-window ()

Reply via email to