merge
This commit is contained in:
parent
cef7de2ae3
commit
f635488cee
|
|
@ -6,3 +6,4 @@
|
||||||
/emacs/straight/repos/
|
/emacs/straight/repos/
|
||||||
/emacs/elisp
|
/emacs/elisp
|
||||||
/emacs/straight/
|
/emacs/straight/
|
||||||
|
/emacs/ellama-sessions/
|
||||||
|
|
|
||||||
|
|
@ -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)))))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue