From 1d1492faf63e7c5f0101bcb66cd769feb737c60d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 12 Dec 2024 22:16:52 +0100 Subject: emacs: use patch to set path to tabnine exe --- user/settings/emacs.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'user/settings/emacs.nix') diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index db3a29fa..73a3b55a 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -185,6 +185,12 @@ in lsp-mode = self.melpaPackages.lsp-mode.overrideAttrs { LSP_USE_PLISTS = "true"; # must be set in early-init }; + tabnine = self.melpaPackages.tabnine.overrideAttrs (attrs: { + postPatch = (attrs.postPatch or "") + '' + substituteInPlace tabnine-core.el \ + --replace '(tabnine--executable-path)' '"${pkgs.tabnine}/bin/TabNine"' + ''; + }); }; extraConfig = '' (with-eval-after-load 'editorconfig -- cgit 1.4.1