summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index f03d108d..195bc0fe 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -45,6 +45,28 @@ in
     ../modules/eshell.nix
   ];
 
+  nixpkgs.overlays = [
+    (self: super: {
+      emacsPackagesFor = emacs:
+        (super.emacsPackagesFor emacs).overrideScope' (
+          eself: esuper:
+            (
+              {
+                consult-ghq = esuper.consult-ghq.overrideAttrs
+                  (oldAttrs: {
+                    src = pkgs.fetchFromGitHub {
+                      owner = "alanpearce";
+                      repo = "consult-ghq";
+                      rev = "3a0b366ef2e066c0d941a19d22d5a23d7f778535";
+                      sha256 = "0v7z61nx6xyhxbqkjangqrnay7pp74w4m90wfb29l99p1wkxqbzx";
+                    };
+                  });
+              }
+            )
+        );
+    })
+  ];
+
   programs.emacs = {
     enable = true;
     package = lib.mkDefault (pkgs.emacs.override { withGTK3 = true; });
@@ -90,6 +112,7 @@ in
         company-shell
         company-tabnine
         consult
+        consult-ghq # own override
         consult-eglot
         counsel
         crux