diff options
| author | benj <benj@rse8.com> | 2025-08-06 10:13:51 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2025-08-06 10:13:51 -0700 |
| commit | 05b75f536220a7ee2ce2daeab46aafe1978d5911 (patch) | |
| tree | d6fd11fa25adb007473ff9b454c63e2d47e77f39 | |
| parent | c5cbc9ccdeb572e54f1aecedb2de27f936af5b59 (diff) | |
| download | emacs-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 '')
| -rw-r--r-- | init.el | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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" |
