making a lot of ai stuff finally work
This commit is contained in:
parent
22d466d6eb
commit
3719955000
25
README.org
25
README.org
|
@ -639,6 +639,10 @@ This evil-collection package includes a lot of other evil based things.
|
|||
(general-create-definer chris/leader-keys
|
||||
:keymaps '(normal visual emacs)
|
||||
:prefix "SPC")
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
:keymaps 'override
|
||||
"d" '(execute-extended-command :which-key "execute command"))
|
||||
(chris/leader-keys
|
||||
:states 'normal
|
||||
:keymaps 'override
|
||||
|
@ -2011,12 +2015,26 @@ Idk, let's try this i guess
|
|||
(use-package ellama
|
||||
:init
|
||||
(require 'llm-ollama)
|
||||
(setopt ellama-buffer-mode 'org-mode
|
||||
(setopt ellama-buffer-mode 'markdown-mode
|
||||
ellama-user-nick "Chris"
|
||||
ellama-assistant-nick "Jeeves"
|
||||
ellama-provider
|
||||
(make-llm-ollama
|
||||
:chat-model "zephyr:7b-chat-q4_0" :embedding-model "zephyr:7b-chat-q4_0")))
|
||||
(make-llm-ollama
|
||||
:scheme "http"
|
||||
:host "192.168.1.2"
|
||||
:port 11434
|
||||
:chat-model "mistral" :embedding-model "mistral"))
|
||||
:general
|
||||
(chris/leader-keys
|
||||
:states '(normal visual)
|
||||
:keymaps 'override
|
||||
"l" '(:ignore t :which-key "llm")
|
||||
"la" 'ellama-ask
|
||||
"lb" 'ellama-ask-about
|
||||
"lc" 'ellama-code-review
|
||||
"lec" 'ellama-enhance-code
|
||||
"leg" 'ellama-enhance-grammar-spelling
|
||||
"lew" 'ellama-enhance-wording))
|
||||
#+end_src
|
||||
|
||||
** Jinx
|
||||
|
@ -3390,6 +3408,7 @@ It's probably smart to have markdown.
|
|||
:config
|
||||
(setq markdown-fontify-code-blocks-natively t)
|
||||
(add-hook 'markdown-mode-hook 'chris/org-mode-setup)
|
||||
(custom-set-faces '(markdown-code-face ((t (:inherit org-block)))))
|
||||
:general
|
||||
(general-def 'normal markdown-mode-map
|
||||
"C-j" 'markdown-next-visible-heading
|
||||
|
|
25
init.el
25
init.el
|
@ -346,6 +346,10 @@
|
|||
(general-create-definer chris/leader-keys
|
||||
:keymaps '(normal visual emacs)
|
||||
:prefix "SPC")
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
:keymaps 'override
|
||||
"d" '(execute-extended-command :which-key "execute command"))
|
||||
(chris/leader-keys
|
||||
:states 'normal
|
||||
:keymaps 'override
|
||||
|
@ -1596,12 +1600,26 @@ Optional BACKEND must be `re-reveal' or a backend derived from it."
|
|||
(use-package ellama
|
||||
:init
|
||||
(require 'llm-ollama)
|
||||
(setopt ellama-buffer-mode 'org-mode
|
||||
(setopt ellama-buffer-mode 'markdown-mode
|
||||
ellama-user-nick "Chris"
|
||||
ellama-assistant-nick "Jeeves"
|
||||
ellama-provider
|
||||
(make-llm-ollama
|
||||
:chat-model "zephyr:7b-chat-q4_0" :embedding-model "zephyr:7b-chat-q4_0")))
|
||||
(make-llm-ollama
|
||||
:scheme "http"
|
||||
:host "192.168.1.2"
|
||||
:port 11434
|
||||
:chat-model "mistral" :embedding-model "mistral"))
|
||||
:general
|
||||
(chris/leader-keys
|
||||
:states '(normal visual)
|
||||
:keymaps 'override
|
||||
"l" '(:ignore t :which-key "llm")
|
||||
"la" 'ellama-ask
|
||||
"lb" 'ellama-ask-about
|
||||
"lc" 'ellama-code-review
|
||||
"lec" 'ellama-enhance-code
|
||||
"leg" 'ellama-enhance-grammar-spelling
|
||||
"lew" 'ellama-enhance-wording))
|
||||
|
||||
(use-package jinx
|
||||
;; :hook (emacs-startup . global-jinx-mode)
|
||||
|
@ -2506,6 +2524,7 @@ targets."
|
|||
:config
|
||||
(setq markdown-fontify-code-blocks-natively t)
|
||||
(add-hook 'markdown-mode-hook 'chris/org-mode-setup)
|
||||
(custom-set-faces '(markdown-code-face ((t (:inherit org-block)))))
|
||||
:general
|
||||
(general-def 'normal markdown-mode-map
|
||||
"C-j" 'markdown-next-visible-heading
|
||||
|
|
Loading…
Reference in a new issue