doom

My literate doom emacs config
git clone https://github.com/michaelneuper/doom.git
Files | Log | Refs

commit a0ec9f11faf68b6e95ff433f442dda39b68563f4
parent 918a7c4c190421e5ea77c28d33ba9366bc45b291
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Thu, 24 Jul 2025 20:49:53 +0200

customise gptel

- add custom faces
- add keybinding for removing context

Diffstat:
Mconfig.org | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/config.org b/config.org @@ -661,6 +661,12 @@ Set up =gptel= to use copilot and install some tools from the =llm-tool-collecti gptel-backend (gptel-make-gh-copilot "Copilot") gptel-default-mode 'org-mode) + (custom-set-faces! + `(gptel-context-highlight-face + :background ,(doom-color 'bg-alt)) + `(gptel-context-deletion-face + :inherit diff-removed)) + ;; see https://github.com/karthink/gptel/wiki/Tools-collection (gptel-make-tool :function (lambda (command &optional working_dir) @@ -683,7 +689,13 @@ Set up =gptel= to use copilot and install some tools from the =llm-tool-collecti :include t) (mapcar (apply-partially #'apply #'gptel-make-tool) - (llm-tool-collection-get-all))) + (llm-tool-collection-get-all)) + + (map! :map gptel-mode-map + :leader + :prefix "ol" + :desc "Remove all context" + "R" #'gptel-context-remove-all)) #+end_src *** lsp +eglot Change some of =eglot='s faces.