Compare commits
No commits in common. "61d9355c0ef277b65d057cf55876cdbb6eee7a91" and "df2ab41246c6bfd18849226bd207a68f79035114" have entirely different histories.
61d9355c0e
...
df2ab41246
2 changed files with 6 additions and 68 deletions
|
@ -214,8 +214,6 @@
|
||||||
:custom
|
:custom
|
||||||
(meow-use-clipboard 't)
|
(meow-use-clipboard 't)
|
||||||
:config
|
:config
|
||||||
(require 'meow-tree-sitter)
|
|
||||||
(meow-tree-sitter-register-defaults)
|
|
||||||
(add-hook 'after-make-frame-functions (defun ccr/meow--prepare-face (_)
|
(add-hook 'after-make-frame-functions (defun ccr/meow--prepare-face (_)
|
||||||
(meow--prepare-face)
|
(meow--prepare-face)
|
||||||
(remove-hook 'after-make-frame-functions 'ccr/meow--prepare-face)))
|
(remove-hook 'after-make-frame-functions 'ccr/meow--prepare-face)))
|
||||||
|
@ -700,8 +698,8 @@
|
||||||
:custom ((eshell-command-not-found-command "command-not-found"))
|
:custom ((eshell-command-not-found-command "command-not-found"))
|
||||||
:hook ((eshell-mode . eshell-command-not-found-mode)))
|
:hook ((eshell-mode . eshell-command-not-found-mode)))
|
||||||
|
|
||||||
;; (use-package eshell-atuin
|
(use-package eshell-atuin
|
||||||
;; :hook ((eshell-mode . eshell-atuin-mode)))
|
:hook ((eshell-mode . eshell-atuin-mode)))
|
||||||
|
|
||||||
(use-package eshell-syntax-highlighting
|
(use-package eshell-syntax-highlighting
|
||||||
:custom
|
:custom
|
||||||
|
@ -983,82 +981,22 @@ This is meant to be an helper to be called from the window manager."
|
||||||
|
|
||||||
(use-package gptel
|
(use-package gptel
|
||||||
:custom
|
:custom
|
||||||
(gptel-model 'google/gemini-2.0-flash-001)
|
(gptel-model 'qwen/qwen-max)
|
||||||
(gptel-backend (gptel-make-openai "OpenRouter"
|
(gptel-backend (gptel-make-openai "OpenRouter"
|
||||||
:host "openrouter.ai"
|
:host "openrouter.ai"
|
||||||
:endpoint "/api/v1/chat/completions"
|
:endpoint "/api/v1/chat/completions"
|
||||||
:key (lambda () (require 'f) (f-read-text (getenv "OPENAI_API_KEY_PATH")))
|
:key (lambda () (require 'f) (f-read-text (getenv "OPENAI_API_KEY_PATH")))
|
||||||
:stream t
|
:stream t
|
||||||
:models '(google/gemini-2.0-flash-001))
|
:models '(qwen/qwen-max deepseek/deepseek-chat))
|
||||||
)
|
)
|
||||||
(gptel-default-mode 'org-mode)
|
(gptel-default-mode 'org-mode)
|
||||||
(gptel-org-branching-context nil) ;; this is cool but I don't feel comfortable with it
|
(gptel-org-branching-context nil) ;; this is cool but I don't feel comfortable with it
|
||||||
(gptel-use-tools 't)
|
|
||||||
|
|
||||||
:bind
|
|
||||||
("C-c a a" . gptel-add)
|
|
||||||
("C-c a f" . gptel-add-file)
|
|
||||||
("C-c a r" . gptel-context-remove-all)
|
|
||||||
("C-c a " . gptel-menu)
|
|
||||||
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(require 'gptel-curl)
|
(require 'gptel-curl)
|
||||||
|
|
||||||
;; (add-hook 'gptel-post-response-functions 'gptel-end-of-response)
|
;; (add-hook 'gptel-post-response-functions 'gptel-end-of-response)
|
||||||
;; (add-hook 'gptel-post-stream-hook 'gptel-auto-scroll)
|
;; (add-hook 'gptel-post-stream-hook 'gptel-auto-scroll)
|
||||||
|
|
||||||
(setq gptel-tools (mapcar (lambda (tool) (apply #'gptel-make-tool tool))
|
|
||||||
'((
|
|
||||||
:name "create_file"
|
|
||||||
:function (lambda (path filename content)
|
|
||||||
(let ((full-path (expand-file-name filename path)))
|
|
||||||
(with-temp-buffer
|
|
||||||
(insert content)
|
|
||||||
(write-file full-path))
|
|
||||||
(format-read "Created file %s in %s" filename path)))
|
|
||||||
:description "Create a new file with the specified content"
|
|
||||||
:args (list '(:name "path"
|
|
||||||
:type string
|
|
||||||
:description "The directory where to create the file")
|
|
||||||
'(:name "filename"
|
|
||||||
:type string
|
|
||||||
:description "The name of the file to create")
|
|
||||||
'(:name "content"
|
|
||||||
:type string
|
|
||||||
:description "The content to write to the file"))
|
|
||||||
:category "filesystem"
|
|
||||||
)
|
|
||||||
(
|
|
||||||
:name "run_command"
|
|
||||||
:confirm 't
|
|
||||||
:function (lambda (command)
|
|
||||||
(shell-command-to-string command))
|
|
||||||
:description "Run arbitrary commands"
|
|
||||||
:args (list '(:name "command"
|
|
||||||
:type string
|
|
||||||
:description "The content to run e.g. 'ls *' or 'fd <pattern> <path>'"))
|
|
||||||
)
|
|
||||||
(
|
|
||||||
:name "get_weather"
|
|
||||||
:function (lambda (location)
|
|
||||||
(url-retrieve-synchronously "api.weather.com/..."
|
|
||||||
location unit))
|
|
||||||
:description "Get the current weather in a given location"
|
|
||||||
:args (list '(:name "location"
|
|
||||||
:type string
|
|
||||||
:description "The city and state, e.g. San Francisco, CA")
|
|
||||||
'(:name "unit"
|
|
||||||
:type string
|
|
||||||
:enum ["celsius" "farenheit"]
|
|
||||||
:description
|
|
||||||
"The unit of temperature, either 'celsius' or 'fahrenheit"
|
|
||||||
:optional t
|
|
||||||
))
|
|
||||||
)
|
|
||||||
))
|
|
||||||
)
|
|
||||||
|
|
||||||
(defun ccr/suggest-eshell-command ()
|
(defun ccr/suggest-eshell-command ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
|
@ -27,11 +27,11 @@ in
|
||||||
rebase.autostash = true;
|
rebase.autostash = true;
|
||||||
github.user = "aciceri";
|
github.user = "aciceri";
|
||||||
|
|
||||||
user.signingKey = "/home/${username}/.ssh/id_ed25519";
|
user.signingKey = "/home/${username}/.ssh/id_rsa";
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
|
|
||||||
credential.helper = "libsecret";
|
credential.helper = "manager";
|
||||||
credential.credentialStore = "cache";
|
credential.credentialStore = "cache";
|
||||||
|
|
||||||
core = {
|
core = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue