elisa and remove flycheck hook

This commit is contained in:
Levi 2024-09-16 10:17:04 +02:00
parent a4e19d6198
commit 5d85b8ae15
4 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@
emacs/flycheck_init.el
/emacs/.org-id-locations
/emacs/detached/
/emacs/elisa/

View File

@ -7,6 +7,7 @@
;;; Code:
(require 'module-llm)
(require 'module-assistant)
(provide 'feature-bsgen)
;;; feature-bsgen.el ends here.

View File

@ -0,0 +1,27 @@
;;; module-assistant.el --- llm powered assistant -*- lexical-binding: t; -*-
;;;
;;; Commentary:
;;;
;;; Adds an assistant to Emacs.
;;;
;;; Code:
(require 'module-pkg)
(pkg/require 'elisa)
(defun my/elisa-setup ()
"Perform initial elisa setup."
(interactive)
(elisa-download-sqlite-vss)
(elisa-async-parse-all-manuals))
(setq elisa-embeddings-provider
(make-llm-ollama :embedding-model "nomic-embed-text"))
(setq elisa-chat-provider
(make-llm-ollama :chat-model "sskostyaev/openchat:8k-rag"
:embedding-model "nomic-embed-text"))
(setq elisa-limit 5)
(provide 'module-assistant)
;;; module-assistant.el ends here.

View File

@ -13,7 +13,7 @@
(add-hook 'prog-mode-hook 'fic-mode)
(pkg/require-defer 'flycheck)
(add-hook 'prog-mode-hook 'flycheck)
(with-eval-after-load 'flycheck
(global-flycheck-mode)
(setq flycheck-emacs-lisp-load-path 'inherit))