elisa and remove flycheck hook
This commit is contained in:
parent
a4e19d6198
commit
5d85b8ae15
|
|
@ -13,3 +13,4 @@
|
||||||
emacs/flycheck_init.el
|
emacs/flycheck_init.el
|
||||||
/emacs/.org-id-locations
|
/emacs/.org-id-locations
|
||||||
/emacs/detached/
|
/emacs/detached/
|
||||||
|
/emacs/elisa/
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'module-llm)
|
(require 'module-llm)
|
||||||
|
(require 'module-assistant)
|
||||||
|
|
||||||
(provide 'feature-bsgen)
|
(provide 'feature-bsgen)
|
||||||
;;; feature-bsgen.el ends here.
|
;;; feature-bsgen.el ends here.
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
(add-hook 'prog-mode-hook 'fic-mode)
|
(add-hook 'prog-mode-hook 'fic-mode)
|
||||||
|
|
||||||
(pkg/require-defer 'flycheck)
|
(pkg/require-defer 'flycheck)
|
||||||
(add-hook 'prog-mode-hook 'flycheck)
|
|
||||||
(with-eval-after-load 'flycheck
|
(with-eval-after-load 'flycheck
|
||||||
(global-flycheck-mode)
|
(global-flycheck-mode)
|
||||||
(setq flycheck-emacs-lisp-load-path 'inherit))
|
(setq flycheck-emacs-lisp-load-path 'inherit))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue