more tweaks....
This commit is contained in:
parent
7a16f70bba
commit
2db1fd2e09
55
README.org
55
README.org
|
@ -792,6 +792,13 @@ This evil-collection package includes a lot of other evil based things.
|
|||
"C-<tab>" 'indent-for-tab-command))
|
||||
#+end_src
|
||||
|
||||
|
||||
*** Hydra
|
||||
I decided to add hydras. Haven't needed them yet, but maybe they'd be helpful in some instances.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package hydra)
|
||||
#+end_src
|
||||
|
||||
** Bluetooth
|
||||
I think I like this interface to controlling bluetooth the most
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -1148,6 +1155,14 @@ Part of this config includes some special capture templates for my work as a you
|
|||
(setq org-html-postamble t
|
||||
org-html-postamble-format '(("en"
|
||||
"<footer> <p>Author: %a (%e)</p></footer>")))
|
||||
|
||||
(defun chris/org-cycle-hide-drawers-all ()
|
||||
(interactive)
|
||||
(chris/org-cycle-hide-drawers 'all))
|
||||
|
||||
(defun chris/org-cycle-hide-drawers-sub ()
|
||||
(interactive)
|
||||
(chris/org-cycle-hide-drawers 'subtree))
|
||||
|
||||
:general
|
||||
(chris/leader-keys
|
||||
|
@ -1166,7 +1181,9 @@ Part of this config includes some special capture templates for my work as a you
|
|||
:states 'normal
|
||||
:keymaps 'org-mode-map
|
||||
"is" 'org-time-stamp
|
||||
"ta" 'chris/org-cycle-hide-drawers-all
|
||||
"tp" (chris/org-cycle-hide-drawers 'children)
|
||||
"th" 'chris/org-cycle-hide-drawers-sub
|
||||
"iw" 'org-web-tools-insert-web-page-as-entry)
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
|
@ -1191,9 +1208,9 @@ Part of this config includes some special capture templates for my work as a you
|
|||
"gt" 'org-set-tags-command
|
||||
"ze" 'org-emphasize
|
||||
"zn" 'org-narrow-to-subtree
|
||||
"zh" (chris/org-cycle-hide-drawers 'subtree)
|
||||
"zw" 'widen
|
||||
"zp" 'org-set-property
|
||||
"zh" (chris/org-cycle-hide-drawers 'subtree)
|
||||
"S" 'org-schedule
|
||||
"t" 'org-todo
|
||||
"gf" 'org-footnote-action
|
||||
|
@ -2118,6 +2135,34 @@ I'm going to start a website for my own ramblings, tutorials and links. To do th
|
|||
|
||||
** AI
|
||||
GPTEL is a package that uses chatGPT to get some text generation in org-mode
|
||||
*** gptel
|
||||
#+begin_src emacs-lisp
|
||||
(use-package gptel
|
||||
:init
|
||||
(setq gptel-model "llama3.1:latest"
|
||||
gptel-backend (gptel-make-ollama "ollama"
|
||||
:host "ai.tfcconnection.org"
|
||||
:protocol "https"
|
||||
:stream t
|
||||
:models '("llama3.1:latest")))
|
||||
(setq gptel-directives '((default
|
||||
. "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
|
||||
(programming
|
||||
. "You are a large language model and a careful programmer. Provide code and only code as output without any additional text, prompt or note.")
|
||||
(writing
|
||||
. "You are a large language model and a writing assistant. Respond concisely.")
|
||||
(chat
|
||||
. "You are a large language model and a conversation partner. Respond concisely.")
|
||||
(dnd . "Assume the role of an expert fantasy writer that specializes in interactive fiction, as well as the storyline, characters, locations, descriptions, groups and organizations, stories, events, and magical objects of Baldur’s Gate, Tales of the Sword Coast, Baldur’s Gate 2: Shadows of Amn, Throne of Bhaal, and Baldur’s Gate 3. The adventure takes place on the continent of Faerun.
|
||||
|
||||
Describe everything that follows in the present tense, in response to what I type, while accurately following the established lore of Baldur’s Gate, Tales of the Sword Coast, Baldur’s Gate 2: Shadows of Amn, Throne of Bhaal, and Baldur’s Gate 3, written in the descriptive style of R.A Salvatore. Provide names for characters, locations, groups and organizations, events, and magical objects. Characters should always use dialogue, enclosed in quotation marks when interacting with me or my party members, written in the conversational style of R.A Salvatore. Do not type, compose, dictate, influence, script, generate, control, or describe what me or my party members are doing, saying, acting, behaving, thinking, feeling, experiencing, or any other aspect concerning me or my party members throughout the entire adventure, scenario, story, location, quest, mission, scene, event, description, dialogue, and conversation. Use only one paragraph consisting of less than 80 words for all replies, descriptions, conversations, dialogue and text.")))
|
||||
:general
|
||||
(chris/leader-keys
|
||||
:states '(normal visual)
|
||||
:keymaps 'override
|
||||
"la" 'gptel-send
|
||||
"lm" 'gptel-menu))
|
||||
#+end_src
|
||||
*** Ellama
|
||||
Idk, let's try this i guess
|
||||
|
||||
|
@ -2143,6 +2188,12 @@ Idk, let's try this i guess
|
|||
:port 443
|
||||
:chat-model "mistral"
|
||||
:embedding-model "mistral"))
|
||||
("llama3" . (make-llm-ollama
|
||||
:scheme "https"
|
||||
:host "ai.tfcconnection.org"
|
||||
:port 443
|
||||
:chat-model "llama3.1"
|
||||
:embedding-model "llama3.1"))
|
||||
("openhermes" . (make-llm-ollama
|
||||
:scheme "https"
|
||||
:host "ai.tfcconnection.org"
|
||||
|
@ -3478,7 +3529,7 @@ I'd like to start learning and using rust if I can.
|
|||
;; comment to disable rustfmt on save
|
||||
(setq rustic-format-on-save t
|
||||
rustic-lsp-client 'eglot
|
||||
rustic-clippy-arguments "-- -W clippy::pedantic")
|
||||
rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used")
|
||||
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-error)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-warning)
|
||||
|
|
48
init.el
48
init.el
|
@ -524,6 +524,8 @@
|
|||
"TAB" 'indent-according-to-mode
|
||||
"C-<tab>" 'indent-for-tab-command))
|
||||
|
||||
(use-package hydra)
|
||||
|
||||
(use-package bluetooth
|
||||
:after general
|
||||
:general
|
||||
|
@ -866,6 +868,14 @@ much faster. The hope is to also make this a faster version of imenu."
|
|||
(setq org-html-postamble t
|
||||
org-html-postamble-format '(("en"
|
||||
"<footer> <p>Author: %a (%e)</p></footer>")))
|
||||
|
||||
(defun chris/org-cycle-hide-drawers-all ()
|
||||
(interactive)
|
||||
(chris/org-cycle-hide-drawers 'all))
|
||||
|
||||
(defun chris/org-cycle-hide-drawers-sub ()
|
||||
(interactive)
|
||||
(chris/org-cycle-hide-drawers 'subtree))
|
||||
|
||||
:general
|
||||
(chris/leader-keys
|
||||
|
@ -884,7 +894,9 @@ much faster. The hope is to also make this a faster version of imenu."
|
|||
:states 'normal
|
||||
:keymaps 'org-mode-map
|
||||
"is" 'org-time-stamp
|
||||
"ta" 'chris/org-cycle-hide-drawers-all
|
||||
"tp" (chris/org-cycle-hide-drawers 'children)
|
||||
"th" 'chris/org-cycle-hide-drawers-sub
|
||||
"iw" 'org-web-tools-insert-web-page-as-entry)
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
|
@ -909,9 +921,9 @@ much faster. The hope is to also make this a faster version of imenu."
|
|||
"gt" 'org-set-tags-command
|
||||
"ze" 'org-emphasize
|
||||
"zn" 'org-narrow-to-subtree
|
||||
"zh" (chris/org-cycle-hide-drawers 'subtree)
|
||||
"zw" 'widen
|
||||
"zp" 'org-set-property
|
||||
"zh" (chris/org-cycle-hide-drawers 'subtree)
|
||||
"S" 'org-schedule
|
||||
"t" 'org-todo
|
||||
"gf" 'org-footnote-action
|
||||
|
@ -1619,6 +1631,32 @@ Optional BACKEND must be `re-reveal' or a backend derived from it."
|
|||
(setq org-hugo-base-dir "/home/chris/dev/cochrun.xyz"
|
||||
org-hugo-section "blog"))
|
||||
|
||||
(use-package gptel
|
||||
:init
|
||||
(setq gptel-model "llama3.1:latest"
|
||||
gptel-backend (gptel-make-ollama "ollama"
|
||||
:host "ai.tfcconnection.org"
|
||||
:protocol "https"
|
||||
:stream t
|
||||
:models '("llama3.1:latest")))
|
||||
(setq gptel-directives '((default
|
||||
. "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
|
||||
(programming
|
||||
. "You are a large language model and a careful programmer. Provide code and only code as output without any additional text, prompt or note.")
|
||||
(writing
|
||||
. "You are a large language model and a writing assistant. Respond concisely.")
|
||||
(chat
|
||||
. "You are a large language model and a conversation partner. Respond concisely.")
|
||||
(dnd . "Assume the role of an expert fantasy writer that specializes in interactive fiction, as well as the storyline, characters, locations, descriptions, groups and organizations, stories, events, and magical objects of Baldur’s Gate, Tales of the Sword Coast, Baldur’s Gate 2: Shadows of Amn, Throne of Bhaal, and Baldur’s Gate 3. The adventure takes place on the continent of Faerun.
|
||||
|
||||
Describe everything that follows in the present tense, in response to what I type, while accurately following the established lore of Baldur’s Gate, Tales of the Sword Coast, Baldur’s Gate 2: Shadows of Amn, Throne of Bhaal, and Baldur’s Gate 3, written in the descriptive style of R.A Salvatore. Provide names for characters, locations, groups and organizations, events, and magical objects. Characters should always use dialogue, enclosed in quotation marks when interacting with me or my party members, written in the conversational style of R.A Salvatore. Do not type, compose, dictate, influence, script, generate, control, or describe what me or my party members are doing, saying, acting, behaving, thinking, feeling, experiencing, or any other aspect concerning me or my party members throughout the entire adventure, scenario, story, location, quest, mission, scene, event, description, dialogue, and conversation. Use only one paragraph consisting of less than 80 words for all replies, descriptions, conversations, dialogue and text.")))
|
||||
:general
|
||||
(chris/leader-keys
|
||||
:states '(normal visual)
|
||||
:keymaps 'override
|
||||
"la" 'gptel-send
|
||||
"lm" 'gptel-menu))
|
||||
|
||||
(use-package ellama
|
||||
:init
|
||||
(require 'llm-ollama)
|
||||
|
@ -1640,6 +1678,12 @@ Optional BACKEND must be `re-reveal' or a backend derived from it."
|
|||
:port 443
|
||||
:chat-model "mistral"
|
||||
:embedding-model "mistral"))
|
||||
("llama3" . (make-llm-ollama
|
||||
:scheme "https"
|
||||
:host "ai.tfcconnection.org"
|
||||
:port 443
|
||||
:chat-model "llama3.1"
|
||||
:embedding-model "llama3.1"))
|
||||
("openhermes" . (make-llm-ollama
|
||||
:scheme "https"
|
||||
:host "ai.tfcconnection.org"
|
||||
|
@ -2589,7 +2633,7 @@ targets."
|
|||
;; comment to disable rustfmt on save
|
||||
(setq rustic-format-on-save t
|
||||
rustic-lsp-client 'eglot
|
||||
rustic-clippy-arguments "-- -W clippy::pedantic")
|
||||
rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used")
|
||||
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-error)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-warning)
|
||||
|
|
Loading…
Reference in a new issue