Skip to content

Commit

Permalink
feat: add elysium for code assistance (#415)
Browse files Browse the repository at this point in the history
* feat: add elysium

* feat: add regex helper to gptel

* feat: decrease default font height

* feat: decrease kill-ring max size
  • Loading branch information
terlar authored Oct 28, 2024
1 parent d149c21 commit 6bf766f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
21 changes: 19 additions & 2 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ Hide M-x commands which does not work in the current buffer.
(defvar init-line-spacing 0.25
"Spacing between lines.")

(defvar init-default-font-height 120
(defvar init-default-font-height 105
"Default font height.")
#+end_src

Expand Down Expand Up @@ -1323,7 +1323,7 @@ Wrap at words.
Save clipboard contents into kill-ring before replacing them.
#+begin_src emacs-lisp :tangle yes
(setq save-interprogram-paste-before-kill t)
(setq kill-ring-max 60)
(setq kill-ring-max 30)
#+end_src

** Parenthesis
Expand Down Expand Up @@ -4005,6 +4005,11 @@ Visual undo history navigation.
(cl-pushnew
'(cli . "You are a large language model and a correct command line helper. Provide commands and only commands as output without any additional text, prompt or note.")
gptel-directives
:test #'equal)

(cl-pushnew
'(regex . "You are a large language model and regular expression expert. Respond with pure regular expressions without involvement of other programming languages.")
gptel-directives
:test #'equal))

(use-package gptel-quick
Expand All @@ -4013,6 +4018,18 @@ Visual undo history navigation.
(:map help-map ("," . gptel-quick)))
#+end_src

*** elysium
#+begin_src emacs-lisp :tangle yes
(use-package elysium
:ensure t
:bind
(:map leader-map
("q" . elysium-query))
:config
(with-eval-after-load 'popper
(cl-pushnew "\\*elysium\\*" popper-reference-buffers :test #'equal)))
#+end_src

* Testing
Packages that I am currently testing or evaluating.

Expand Down
17 changes: 17 additions & 0 deletions lock/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lock/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@
repo = "elquery";
type = "github";
};
elysium = {
flake = false;
owner = "lanceberge";
repo = "elysium";
type = "github";
};
embark = {
flake = false;
owner = "oantolin";
Expand Down

0 comments on commit 6bf766f

Please sign in to comment.