From de48ef2125b53c7df2c572a2e8702cb2d6311439 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sat, 6 Jun 2026 07:41:37 -0400 Subject: [PATCH] Added gptel for LLM integration into emacs --- .emacs.d/config.org | 1 + .emacs.d/llm.org | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .emacs.d/llm.org diff --git a/.emacs.d/config.org b/.emacs.d/config.org index aa158ff..fd42287 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -355,4 +355,5 @@ Load other files: (jm/load-config-if-exists "~/.emacs.d/erc.org") ; IRC Client Config (jm/load-config-if-exists "~/.emacs.d/email.org") ; Mu4e Config (jm/load-config-if-exists "~/.emacs.d/ledger.org") ; Ledger CLI Config +(jm/load-config-if-exists "~/.emacs.d/llm.org") ; LLM Emacs Integration Config #+end_src diff --git a/.emacs.d/llm.org b/.emacs.d/llm.org new file mode 100644 index 0000000..4fc4aa5 --- /dev/null +++ b/.emacs.d/llm.org @@ -0,0 +1,22 @@ +* LLM Emacs Integration + +Implementing LLM features into Emacs through the ~gptel~ package. + +#+begin_src elisp +(use-package gptel + :config + (setq gptel-model 'glm-5.1:cloud + gptel-backend + (gptel-make-ollama "Ollama" + :host "mindforge.randomctf.lan:11434" + :stream t + :models '(kimi-k2.6:cloud glm-5.1:cloud gpt-oss:120b-cloud)))) +#+end_src + +There are also a set of tools associated with ~gptel~ in a ~gptel-agent~ repo. This contains various tools to make the integration more agentic. + +#+begin_src elisp +(use-package gptel-agent + :config + (gptel-agent-update)) +#+end_src