Skip to content

Commit 6bf766f

Browse files
authored
feat: add elysium for code assistance (#415)
* feat: add elysium * feat: add regex helper to gptel * feat: decrease default font height * feat: decrease kill-ring max size
1 parent d149c21 commit 6bf766f

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

init.org

+19-2
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ Hide M-x commands which does not work in the current buffer.
404404
(defvar init-line-spacing 0.25
405405
"Spacing between lines.")
406406

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

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

13291329
** Parenthesis
@@ -4005,6 +4005,11 @@ Visual undo history navigation.
40054005
(cl-pushnew
40064006
'(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.")
40074007
gptel-directives
4008+
:test #'equal)
4009+
4010+
(cl-pushnew
4011+
'(regex . "You are a large language model and regular expression expert. Respond with pure regular expressions without involvement of other programming languages.")
4012+
gptel-directives
40084013
:test #'equal))
40094014

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

4021+
*** elysium
4022+
#+begin_src emacs-lisp :tangle yes
4023+
(use-package elysium
4024+
:ensure t
4025+
:bind
4026+
(:map leader-map
4027+
("q" . elysium-query))
4028+
:config
4029+
(with-eval-after-load 'popper
4030+
(cl-pushnew "\\*elysium\\*" popper-reference-buffers :test #'equal)))
4031+
#+end_src
4032+
40164033
* Testing
40174034
Packages that I am currently testing or evaluating.
40184035

lock/flake.lock

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lock/flake.nix

+6
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@
222222
repo = "elquery";
223223
type = "github";
224224
};
225+
elysium = {
226+
flake = false;
227+
owner = "lanceberge";
228+
repo = "elysium";
229+
type = "github";
230+
};
225231
embark = {
226232
flake = false;
227233
owner = "oantolin";

0 commit comments

Comments
 (0)