summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2025-08-06 10:13:51 -0700
committerbenj <benj@rse8.com>2025-08-06 10:13:51 -0700
commit05b75f536220a7ee2ce2daeab46aafe1978d5911 (patch)
treed6fd11fa25adb007473ff9b454c63e2d47e77f39 /init.el
parentc5cbc9ccdeb572e54f1aecedb2de27f936af5b59 (diff)
downloademacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.tar
emacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.tar.gz
emacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.tar.bz2
emacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.tar.lz
emacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.tar.xz
emacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.tar.zst
emacs-05b75f536220a7ee2ce2daeab46aafe1978d5911.zip
add aider and ensure lexical binding is enabled
Diffstat (limited to 'init.el')
-rw-r--r--init.el13
1 files changed, 11 insertions, 2 deletions
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 <benjaminbellon@gmail.com>
;;; Maintainer: Benj Bellon <benjaminbellon@gmail.com>
@@ -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"