elfeed and ellama

This commit is contained in:
k 2024-12-27 21:03:11 -05:00
parent e2064cf833
commit 498bc27ffd

66
init.el
View File

@ -30,6 +30,27 @@
:config
(which-key-mode))
(use-package elfeed
:ensure t
:bind (("C-c r" . elfeed)))
(use-package elfeed-org
:ensure t
:init
(elfeed-org)
:config
(setq rmh-elfeed-org-files (list "~/.config/emacs/elfeed.org")))
(add-hook 'elfeed-new-entry-hook
(elfeed-make-tagger :feed-url "youtube\\.com"
:add '(video youtube)))
(use-package elfeed-dashboard
:ensure t
:config
(setq elfeed-dashboard-file "~/.config/emacs/elfeed-dashboard.org")
(advice-add 'elfeed-search-quit-window :after #'elfeed-dashboard-update-links))
(use-package emojify
:ensure t
:hook (after-init . global-emojify-mode))
@ -50,6 +71,51 @@
("C-c n i" . org-roam-node-insert)))
(org-roam-db-autosync-mode)
(use-package ellama
:bind ("C-c e" . ellama-transient-main-menu)
:init
(setopt ellama-language "Esperonto")
(require 'llm-ollama)
(setopt ellama-provider
(make-llm-ollama
:chat-model "llama3.2"
:embedding-model "nomic-embed-text"
:default-chat-non-standard-params '(("num_ctx" . 8192))))
(setopt ellama-summarization-provider
(make-llm-ollama
:chat-model "qwen2.5:3b"
:embedding-model "nomic-embed-text"
:default-chat-non-standard-params '(("num_ctx" . 32768))))
(setopt ellama-coding-provider
(make-llm-ollama
:chat-model "llama3.2"
:embedding-model "nomic-embed-text"
:default-chat-non-standard-params '(("num_ctx" . 32768))))
(setopt ellama-providers
'(("granite-moe" . (make-llm-ollama :chat-model "granite3-moe:3b"))
("llama3.2" . (make-llm-ollama :chat-model "llama3.2"))
("llama2" . (make-llm-ollama :chat-model "llama2-uncensored"))
("qwen2.5" . (make-llm-ollama :chat-model "qwen2.5:3b"))
("gemma2" . (make-llm-ollama :chat-model "gemma2:2b"))
("codegemma" . (make-llm-ollama :chat-model "codegemma:2b"))
))
(setopt ellama-naming-provider
(make-llm-ollama
:chat-model "gemma2:2b"))
(setopt ellama-naming-scheme 'ellama-generate-name-by-llm)
(setopt ellama-translation-provider
(make-llm-ollama
:chat-model "qwen2.5:3b"
:embedding-model "nomic-embed-text"
:default-chat-non-standard-params
'(("num_ctx" . 32768)))))
(setq org-return-follows-link t)
(setf (cdr (assoc 'file org-link-frame-setup)) 'find-file)