From ae5ed3f864ae4cc8e0063fc2c3f652461b9424a7 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Fri, 2 May 2025 09:03:39 -0600 Subject: [PATCH] doom emacs gpt --- dotfiles/doom/config.org | 15 +++++++++++++++ dotfiles/doom/packages.el | 1 + 2 files changed, 16 insertions(+) diff --git a/dotfiles/doom/config.org b/dotfiles/doom/config.org index 57a8aa8..0da23b3 100755 --- a/dotfiles/doom/config.org +++ b/dotfiles/doom/config.org @@ -463,6 +463,21 @@ Configurations to add linting support to specific languages by integrating linte (add-to-list 'flycheck-checkers 'nix-statix)) #+end_src +* GPT +Integrate most AI agents with emacs on a way that through api keys it can do +more than cursor! + +#+begin_src emacs-lisp :tangle ./config.el +(use-package! gptel + :config + (setq! gptel-api-key "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") + (gptel-make-ollama "Ollama" + :host "localhost:11434" + :stream t + :models '(mistral:latest)) + ) + +#+end_src * HUGO Capture template for new hugo posts. diff --git a/dotfiles/doom/packages.el b/dotfiles/doom/packages.el index f3bbc6c..d1f6429 100755 --- a/dotfiles/doom/packages.el +++ b/dotfiles/doom/packages.el @@ -93,3 +93,4 @@ ;; (package! wc-mode) ;; displays character count of buffer (package! expand-region) +(package! gptel :recipe (:nonrecursive t))