From 31cefcba2192c59787091ad8861599320f366dee Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Mon, 3 Jun 2024 16:18:26 +0200 Subject: [PATCH] Use `gptel` directly from GitHub --- flake.nix | 5 +++++ init.el | 12 ++++++------ packages/packages.nix | 3 ++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index a4bcddd..861d6cb 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,11 @@ url = "github:firmart/notmuch-notify"; flake = false; }; + # TODO remove when there will be a new release including GPT-4o + extra-package-gptel = { + url = "github:karthink/gptel"; + flake = false; + }; }; outputs = inputs @ {flake-parts, ...}: diff --git a/init.el b/init.el index e486c4f..d2492e7 100644 --- a/init.el +++ b/init.el @@ -820,12 +820,12 @@ This is meant to be an helper to be called from the window manager." (insert response))))))) ) -(use-package copilot - :custom - (copilot-max-char -1) - (copilot-indent-offset-warning-disable 't) - :hook (prog-mode org-mode) - :bind (("C-" . copilot-accept-completion))) +;; (use-package copilot +;; :custom +;; (copilot-max-char -1) +;; (copilot-indent-offset-warning-disable 't) +;; :hook (prog-mode org-mode) +;; :bind (("C-" . copilot-accept-completion))) (use-package pass :config diff --git a/packages/packages.nix b/packages/packages.nix index a9536cb..43304b9 100644 --- a/packages/packages.nix +++ b/packages/packages.nix @@ -6,6 +6,7 @@ pkgs: epkgs: let indent-bars = [elpaPackages.compat]; copilot = [melpaPackages.editorconfig melpaPackages.dash melpaPackages.s melpaPackages.f]; notmuch-notify = [melpaPackages.alert melpaPackages.notmuch]; + gptel = [pkgs.emacsPackages.transient elpaPackages.compat]; }; overrideAttrsPerPackage = { }; @@ -93,7 +94,7 @@ pkgs: epkgs: let poly-org casual # org-re-reveal # FIXME very not nice hash mismatch when building - gptel + # gptel # TODO uncomment when there will be a new release including GPT-4o ]) ++ (with elpaPackages; [ delight kind-icon