This commit is contained in:
Levi Neely 2024-09-05 20:38:39 +02:00
parent cef7de2ae3
commit f635488cee
2 changed files with 16 additions and 8 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
/emacs/straight/repos/ /emacs/straight/repos/
/emacs/elisp /emacs/elisp
/emacs/straight/ /emacs/straight/
/emacs/ellama-sessions/

View File

@ -658,14 +658,21 @@
(message "Copied file path: %s" filepath)))) (message "Copied file path: %s" filepath))))
(global-set-key (kbd "C-x y b p") 'copy-file-path-to-clipboard) (global-set-key (kbd "C-x y b p") 'copy-file-path-to-clipboard)
(add-hook 'before-save-hook #'gofmt-before-save) (add-hook 'before-save-hook #'gofmt-before-save)
;; Ensure lsp-mode is installed (use-package ellama
(require 'package) :init
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) ;; setup key bindings
(package-initialize) (setopt ellama-keymap-prefix "C-c e")
(unless (package-installed-p 'lsp-mode) ;; language you want ellama to translate to
(package-refresh-contents) (setopt ellama-language "English")
(package-install 'lsp-mode)) ;; could be llm-openai for example
(require 'llm-ollama)
(setopt ellama-provider
(make-llm-ollama
;; this model should be pulled to use it
;; value should be the same as you print in terminal during pull
:chat-model "codellama:latest"
:embedding-model "nomic-embed-text"
:default-chat-non-standard-params '(("num_ctx" . 8192)))))