From 05b75f536220a7ee2ce2daeab46aafe1978d5911 Mon Sep 17 00:00:00 2001 From: benj Date: Wed, 6 Aug 2025 10:13:51 -0700 Subject: add aider and ensure lexical binding is enabled --- init.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index d9e94e3..1359fc6 100644 --- a/init.el +++ b/init.el @@ -1,4 +1,4 @@ -;; init.el --- initialize emacs configuration +;; init.el --- initialize emacs configuration -*- lexical-binding: t; -*- ;;; Author: Benj Bellon ;;; Maintainer: Benj Bellon @@ -108,6 +108,13 @@ (setq aw-keys '(?a ?s ?d ?e ?f ?g ?h ?j ?k ?l)) :bind ("C-x o" . 'ace-window)) +(use-package aider + :ensure t + :config + (setq aider-args '("--model" "sonnet" "--no-auto-accept-architect" "--no-auto-commits")) + (setenv "ANTHROPIC_API_KEY" (auth-source-pass-get 'secret "anthropic.com/api.anthropic.com/apikey")) + (aider-magit-setup-transients)) + (use-package apheleia :ensure t :config @@ -224,15 +231,17 @@ (use-package gptel :ensure t - :after password-store + :after (password-store aider) :bind (:prefix-map ai-commands :prefix-docstring "Emacs AI comamands" :prefix "C-c a" ("a" . 'gptel) + ("i" . 'aider-transient-menu) ("s" . 'gptel-menu) ("RET" . 'gptel-send)) :custom (gptel-api-key (auth-source-pass-get 'secret "openai.com/api.openai.com/apikey")) + (gptel-default-mode #'org-mode) :config (gptel-make-anthropic "anthropic" -- cgit v1.2.3