emacs: add gptel

This commit is contained in:
Erwin Boskma 2024-09-17 20:15:58 +02:00
parent 83cf194c18
commit b30138f731
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -347,7 +347,7 @@ Disabled because the configuration is handled by Nix using [[https://github.com/
(general-define-key
:prefix my/leader
"C" 'find-config)
"c" 'find-config)
#+end_src
** Appearance
@ -861,6 +861,7 @@ Enable [[https://github.com/BurntSushi/ripgrep][ripgrep]] support
#+end_src
** TRAMP
Set some connection properties
#+begin_src emacs-lisp
@ -869,6 +870,24 @@ Set some connection properties
"remote-shell" "/bin/bash")))
#+end_src
** Ollama
Let's evaluate this puppy.
#+begin_src emacs-lisp
(use-package gptel
:general
(:prefix my/leader
"m" 'gptel-menu
"C-m" 'gptel-send)
:config
(setq gptel-model "mistral-nemo"
gptel-backend (gptel-make-ollama "Ollama"
:host "100.119.162.110:11434"
:stream t
:models '("mistral"))))
#+end_src
** Git
Magit. Obviously.
@ -1663,7 +1682,6 @@ Highlighting for device tree configuration.
#+end_src
* Org
** Main org setup