|
39 | 39 | ;; available. You can either set `doom-theme' or manually load a theme with the |
40 | 40 | ;; `load-theme' function. This is the default: |
41 | 41 | ;; (setq doom-theme 'doom-alabaster-dark) |
42 | | -(setq doom-theme 'doom-gruvbox) |
| 42 | +(setq doom-theme 'doom-snazzy) |
43 | 43 |
|
44 | 44 | ;; This determines the style of line numbers in effect. If set to `nil', line |
45 | 45 | ;; numbers are disabled. For relative line numbers, set this to `relative'. |
|
121 | 121 | ("C-c v &" . git-link)) |
122 | 122 |
|
123 | 123 | ;; LLM stuff |
124 | | -(after! gptel |
| 124 | +(use-package! gptel |
| 125 | + :config |
125 | 126 | (setq gptel-log-level 'info ;; help in debugging |
126 | 127 | gptel-include-reasoning t) |
127 | 128 | (require 'gptel-integrations) ;; TODO |
|
133 | 134 | ;; N.B.: the key is the prefix in the list of models in gptel. |
134 | 135 | ;; There's a default list prefixed by "ChatGPT" which is not controlled by this. |
135 | 136 | ;; TODO: figure out what happens if we override the name "ChatGPT" here. |
136 | | - (gptel-make-openai "OpenAI" |
137 | | - :stream t |
138 | | - :key (auth-source-pick-first-password :host "api.openai.com") |
139 | | - :models '((gpt-5 . "gpt-5") |
140 | | - (gpt-5-mini . "gpt-5-mini") |
141 | | - (gpt-4o-mini . "gpt-4o-mini") |
142 | | - (gpt-4o . "gpt-4o") |
143 | | - (gpt-4.1 . "gpt-4.1") |
144 | | - (gpt-4.1-mini . "gpt-4.1-mini")) |
145 | | - ) |
| 137 | + ;; (gptel-make-openai "OpenAI" |
| 138 | + ;; :stream t |
| 139 | + ;; :key (auth-source-pick-first-password :host "api.openai.com") |
| 140 | + ;; :models '((gpt-5 . "gpt-5") |
| 141 | + ;; (gpt-5-mini . "gpt-5-mini") |
| 142 | + ;; (gpt-4o-mini . "gpt-4o-mini") |
| 143 | + ;; (gpt-4o . "gpt-4o") |
| 144 | + ;; (gpt-4.1 . "gpt-4.1") |
| 145 | + ;; (gpt-4.1-mini . "gpt-4.1-mini")) |
| 146 | + ;; ) |
| 147 | + |
146 | 148 | (gptel-make-deepseek "DeepSeek" |
147 | 149 | :stream t |
148 | 150 | :key (auth-source-pick-first-password :host "api.deepseek.com")) |
| 151 | + |
149 | 152 | (gptel-make-gemini "Gemini" |
150 | 153 | :stream t |
151 | 154 | :key (auth-source-pick-first-password :host "generativelanguage.googleapis.com")) |
152 | 155 |
|
| 156 | + (gptel-make-ollama "Ollama" |
| 157 | + :stream t |
| 158 | + :host "localhost:11434" |
| 159 | + :models '(qwen3.5:0.8b) |
| 160 | + ) |
| 161 | + |
| 162 | + (setq! gptel-model 'qwen3.5:0.8b) |
| 163 | + |
153 | 164 | ;; Set default model. Right now this is very OpenAI-centric, i.e. might change in the future. |
154 | | - (setq gptel-model 'gpt-5)) |
| 165 | + ;; (setq gptel-model 'gpt-5)) |
| 166 | + ;; (setq gptel-model 'llama-3.2-3b)) |
155 | 167 |
|
156 | | -;; Magit integration for gptel |
157 | | -(after! gptel-magit |
158 | | - (setq gptel-magit-model 'gpt-4.1-mini)) |
| 168 | + ) |
| 169 | + |
| 170 | +;; Magit integration for gptel (configure separately since it loads via hook) |
| 171 | +(use-package! gptel-magit |
| 172 | + :after gptel magit |
| 173 | + :config |
| 174 | + ;; (setq gptel-magit-model 'gpt-4.1-mini) |
| 175 | + |
| 176 | + (setq! gptel-magit-model 'llama-3.2:3b |
| 177 | + gptel-magit-backend (gptel-make-ollama "Ollama" |
| 178 | + :stream t |
| 179 | + :host "localhost:11434" |
| 180 | + :models '(qwen3.5:0.8b) |
| 181 | + )) |
| 182 | + ) |
159 | 183 |
|
160 | 184 | ;; Let me write longer commit messages |
161 | 185 | (after! git-commit |
|
183 | 207 | ;; ("i" . yankpad-insert) |
184 | 208 | ;; ("s" . yankpad-search))) |
185 | 209 |
|
186 | | -(use-package! eca) |
| 210 | +;; (use-package! eca) |
187 | 211 |
|
188 | 212 | (use-package! rainbow-mode |
189 | 213 | :defer 5 |
|
210 | 234 | (setq agent-shell-enable-logging t) |
211 | 235 | (setq agent-shell-enable-debug t) |
212 | 236 | (setq agent-shell-enable-traces t) |
| 237 | + ;; On Arch the claude-acp executable is called claude-code-acp for some reason, so we need to override the default command. |
| 238 | + ;; TODO: figure out why this is the case and if there's a better solution than hardcoding this. |
| 239 | + (setq agent-shell-anthropic-claude-acp-command '("claude-code-acp")) |
213 | 240 | (setq agent-shell-anthropic-authentication |
214 | 241 | (agent-shell-anthropic-make-authentication |
215 | 242 | :api-key (lambda () (auth-source-pick-first-password :host "api.anthropic.com")))) |
|
233 | 260 | ;; ; The grammar is called tlaplus, but the mode is called tla |
234 | 261 | ;; (setq treesit-load-name-override-list '((tla "libtree-sitter-tlaplus" "tree_sitter_tlaplus"))) |
235 | 262 | ;; ) |
| 263 | + |
| 264 | +;; (use-package! claude-code-ide |
| 265 | +;; ;; :bind ("C-c C-'" . claude-code-ide-menu) ; Set your favorite keybinding |
| 266 | +;; :config |
| 267 | +;; ;; (setq claude-code-ide-cli-path "/usr/bin/claude") |
| 268 | +;; ;; (setq claude-code-ide-cli-debug t) |
| 269 | +;; (claude-code-ide-emacs-tools-setup)) ; Optionally enable Emacs MCP tools |
0 commit comments