Add chatgpt

This commit is contained in:
Andrea Ciceri 2023-10-01 02:57:02 +02:00
parent b43a2eba07
commit aec2cf70f1
No known key found for this signature in database
4 changed files with 27 additions and 0 deletions

17
flake.lock generated
View file

@ -36,6 +36,22 @@
"type": "github"
}
},
"extra-package-chatgpt": {
"flake": false,
"locked": {
"lastModified": 1694351403,
"narHash": "sha256-ZQyPKe9olIaxYGoHJwEwsmfnYnVWCPt6o8ImY6rE3gY=",
"owner": "joshcho",
"repo": "ChatGPT.el",
"rev": "b31337e541eb7df169ae17f7bb26b459e6d6a5ae",
"type": "github"
},
"original": {
"owner": "joshcho",
"repo": "ChatGPT.el",
"type": "github"
}
},
"extra-package-combobulate": {
"flake": false,
"locked": {
@ -207,6 +223,7 @@
"inputs": {
"emacs-overlay": "emacs-overlay",
"extra-package-agenix-el": "extra-package-agenix-el",
"extra-package-chatgpt": "extra-package-chatgpt",
"extra-package-combobulate": "extra-package-combobulate",
"extra-package-dracula-theme": "extra-package-dracula-theme",
"extra-package-indent-bars": "extra-package-indent-bars",

View file

@ -26,6 +26,10 @@
url = "github:aciceri/dracula-emacs";
flake = false;
};
extra-package-chatgpt = {
url = "github:joshcho/ChatGPT.el";
flake = false;
};
};
outputs = inputs @ {flake-parts, ...}:

View file

@ -594,6 +594,11 @@
("C-c n l" . consult-org-roam-forward-links)
("C-c n r" . consult-org-roam-search))
(use-package chatgpt
;; :custom ((chatgpt-code-query-map . (cons "spiega" "Spiega il seguente")))
:bind
("C-c i" . chatgpt-query))
(provide 'init)
;;; init.el ends here
;; Local Variables:

View file

@ -4,6 +4,7 @@ with epkgs; let
depsPerPackage = {
indent-bars = [compat];
"chatgpt" = [polymode];
};
# *Attrset* containig extra emacs packages from flake inputs