emacs: add ellama

This commit is contained in:
joachimschmidt557 2025-03-02 15:31:04 +01:00
parent ebce395504
commit 11a38b847f
No known key found for this signature in database
GPG key ID: E0B575BE2884ACC5

View file

@ -101,6 +101,7 @@
(straight-use-package 'editorconfig) (straight-use-package 'editorconfig)
(straight-use-package 'exec-path-from-shell) (straight-use-package 'exec-path-from-shell)
(straight-use-package 'pyvenv) (straight-use-package 'pyvenv)
(straight-use-package 'ellama)
;; Emacs Configuration ;; Emacs Configuration
(setq inhibit-splash-screen t) (setq inhibit-splash-screen t)
@ -220,3 +221,15 @@
:config :config
(add-to-list 'eglot-server-programs (add-to-list 'eglot-server-programs
'(svelte-mode . ("svelteserver" "--stdio")))) '(svelte-mode . ("svelteserver" "--stdio"))))
(use-package ellama
:bind ("C-c e" . ellama-transient-main-menu)
:init
(require 'llm-ollama)
(setopt ellama-auto-scroll t)
(setopt ellama-provider
(make-llm-ollama
:chat-model "gemma2:2b"))
(setopt ellama-coding-provider
(make-llm-ollama
:chat-model "gemma2:2b")))