branch: elpa/aidermacs
commit bfe77da98654a852a1da82de2b80f58ca5a35da6
Author: Mingde (Matthew) Zeng <matthew...@posteo.net>
Commit: Mingde (Matthew) Zeng <matthew...@posteo.net>

    Add aidermacs-extra-args, time to remove aidermacs-args from config
---
 README.md    | 10 +++++-----
 aidermacs.el |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index b84f11475b..27f871eadf 100644
--- a/README.md
+++ b/README.md
@@ -100,19 +100,19 @@ You can customize the default AI model used by Aidermacs 
by setting the `aiderma
 (setq aidermacs-default-model "anthropic/claude-3-5-sonnet-20241022")
 ```
 
-This allows you to easily switch between different AI models without modifying 
the `aidermacs-args` variable.
+This allows you to easily switch between different AI models without modifying 
the `aidermacs-extra-args` variable.
 
-### Customizing Aider Options with `aidermacs-args`
+### Customizing Aider Options with `aidermacs-extra-args`
 
-The `aidermacs-args` variable allows you to pass any command-line options 
supported by Aider. See the [Aider configuration 
documentation](https://aider.chat/docs/config/options.html) for a full list of 
available options.
+The `aidermacs-extra-args` variable allows you to pass any command-line 
options supported by Aider. See the [Aider configuration 
documentation](https://aider.chat/docs/config/options.html) for a full list of 
available options.
 
 For example, to set the verbosity:
 
 ```emacs-lisp
-(setq aidermacs-args '("--verbose"))
+(setq aidermacs-extra-args '("--verbose"))
 ```
 
-These arguments will be appended to the Aider command when it is run. Note 
that the `--model` argument is automatically handled by 
`aidermacs-default-model` and should not be included in `aidermacs-args`.
+These arguments will be appended to the Aider command when it is run. Note 
that the `--model` argument is automatically handled by 
`aidermacs-default-model` and should not be included in `aidermacs-extra-args`.
 
 ### Sample Config With Doom Emacs
 ```emacs-lisp
diff --git a/aidermacs.el b/aidermacs.el
index 5627308109..450a90c1cf 100644
--- a/aidermacs.el
+++ b/aidermacs.el
@@ -34,7 +34,7 @@
   :type 'string
   :group 'aidermacs)
 
-(defcustom aidermacs-args nil
+(defcustom aidermacs-extra-args nil
   "Additional arguments to pass to the aidermacs command.
 The model argument will be added automatically based on 
`aidermacs-default-model'."
   :type '(repeat string)
@@ -245,7 +245,7 @@ Prefers existing sessions closer to current directory."
                                '("--no-auto-commits"))
                              (when aidermacs-subtree-only
                                '("--subtree-only"))
-                             aidermacs-args)))
+                             aidermacs-extra-args)))
     ;; Check if a matching buffer exists (handled by aidermacs-buffer-name)
     (if (get-buffer buffer-name)
         (aidermacs-switch-to-buffer)

Reply via email to