From 381cdcb532789ae399a90f09f3c6c1e4fdb9c153 Mon Sep 17 00:00:00 2001 From: Jaden Provost Maxwell-Comfort Date: Mon, 7 Sep 2026 11:31:04 -0400 Subject: [PATCH] Fixed rustic on macos; updated gptel keybindings and models --- .emacs.d/config.org | 4 +++- .emacs.d/llm.org | 10 ++++++++-- .emacs.d/lsp.org | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index fd42287..9a20dd0 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -91,7 +91,9 @@ This adds relative line numbers while excluding certain modes. term-mode-hook vterm-mode-hook shell-mode-hook - eshell-mode-hook)) + eshell-mode-hook + gptel-mode-hook + gptel-agent-mode-hook)) (add-hook mode (lambda () (display-line-numbers-mode 0)))) ; Enable relative line numbers diff --git a/.emacs.d/llm.org b/.emacs.d/llm.org index 4fc4aa5..ccb38d5 100644 --- a/.emacs.d/llm.org +++ b/.emacs.d/llm.org @@ -5,12 +5,18 @@ Implementing LLM features into Emacs through the ~gptel~ package. #+begin_src elisp (use-package gptel :config - (setq gptel-model 'glm-5.1:cloud + (setq gptel-model 'glm-5.3: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)))) + :models '(kimi-k3:cloud glm-5.3:cloud gpt-oss:120b-cloud))) + (jm/leader-keys + "aa" 'gptel-agent + "am" 'gptel-menu + "as" 'gptel-send + "ak" 'gptel-abort)) + #+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. diff --git a/.emacs.d/lsp.org b/.emacs.d/lsp.org index 4fd0bef..61b7b93 100644 --- a/.emacs.d/lsp.org +++ b/.emacs.d/lsp.org @@ -98,7 +98,7 @@ Install ~ccls~ with homebrew using the following command. #+begin_src elisp (use-package rustic :defer t - :hook (rust-mode . eglot-ensure) + :custom (rustic-lsp-client 'eglot) :init (let ((brew-prefix (string-trim (shell-command-to-string "brew --prefix")))) (when (and (memq window-system '(mac ns x)) brew-prefix (f-directory-p brew-prefix))