merge
This commit is contained in:
parent
cef7de2ae3
commit
f635488cee
|
|
@ -6,3 +6,4 @@
|
|||
/emacs/straight/repos/
|
||||
/emacs/elisp
|
||||
/emacs/straight/
|
||||
/emacs/ellama-sessions/
|
||||
|
|
|
|||
|
|
@ -658,14 +658,21 @@
|
|||
(message "Copied file path: %s" filepath))))
|
||||
|
||||
(global-set-key (kbd "C-x y b p") 'copy-file-path-to-clipboard)
|
||||
|
||||
(add-hook 'before-save-hook #'gofmt-before-save)
|
||||
|
||||
|
||||
;; Ensure lsp-mode is installed
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
(package-initialize)
|
||||
(unless (package-installed-p 'lsp-mode)
|
||||
(package-refresh-contents)
|
||||
(package-install 'lsp-mode))
|
||||
(use-package ellama
|
||||
:init
|
||||
;; setup key bindings
|
||||
(setopt ellama-keymap-prefix "C-c e")
|
||||
;; language you want ellama to translate to
|
||||
(setopt ellama-language "English")
|
||||
;; 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