branch: elpa/aidermacs commit 811305ac776ac7c8bd37447c7e5062d896b58810 Author: Mingde (Matthew) Zeng <matthew...@posteo.net> Commit: Mingde (Matthew) Zeng <matthew...@posteo.net>
Slight adjustment with the minor mode --- README.md | 6 +++--- aidermacs.el | 13 ++++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f51dbfaa05..7171b188a4 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,9 @@ These arguments will be appended to the Aider command when it is run. Note that ### Terminal Backend Selection -Choose your preferred terminal backend by setting `Aidermacs-backend`: +Choose your preferred terminal backend by setting `aidermacs-backend`: -`vterm` provides better terminal compatibility and bracketed paste support, while `comint` is a simpler, built-in option. +`vterm` provides better terminal compatibility, while `comint` is a simple, built-in option that's still fully compatible with aidermacs. ```emacs-lisp ;; Use vterm backend (default is comint) @@ -167,7 +167,7 @@ The main interface to Aidermacs is through its transient menu system. Here's a b ### Working with Code Blocks -When editing `.aider.prompt.org` or other files, these keybindings are available: +When editing `.aider.prompt.org` or other `.aider*` files, these keybindings are available: - `C-c C-n` or `C-<return>`: Send line/region line-by-line - `C-c C-c`: Send block/region as whole diff --git a/aidermacs.el b/aidermacs.el index 67f3fc77bb..6935745da2 100644 --- a/aidermacs.el +++ b/aidermacs.el @@ -796,7 +796,7 @@ If file doesn't exist, create it with command binding help and sample prompt." (save-buffer))) (message "Not in a git repository")))) -;; Define the keymap for aidermacs Minor Mode +;;;###autoload (defvar aidermacs-minor-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-n") 'aidermacs-send-line-or-region) @@ -804,15 +804,18 @@ If file doesn't exist, create it with command binding help and sample prompt." (define-key map (kbd "C-c C-c") 'aidermacs-send-block-or-region) (define-key map (kbd "C-c C-z") 'aidermacs-switch-to-buffer) map) - "Keymap for aidermacs Minor Mode.") + "Keymap for `aidermacs-minor-mode'.") -;; Define the aidermacs Minor Mode ;;;###autoload (define-minor-mode aidermacs-minor-mode - "Minor mode for aidermacs with keybindings." + "Minor mode for interacting with aidermacs AI pair programming tool. + +Provides these keybindings: +\\{aidermacs-minor-mode-map}" :lighter " aidermacs" :keymap aidermacs-minor-mode-map - :override t) + :override t + :group 'aidermacs) ;; Auto-enable aidermacs-minor-mode for specific files (defcustom aidermacs-auto-mode-files