From 1e98c823ea1d0cb9c5348a8ebb43a58a77bf9cce Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sun, 28 May 2023 23:38:10 +0200 Subject: Emacs: add tree-stitter support This reverts commit 069072653a5c7713f13e7c895d0ce2e531ae34c3. --- modules/emacs.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/emacs.nix') diff --git a/modules/emacs.nix b/modules/emacs.nix index a6a4b22..67aa4b6 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -12,7 +12,14 @@ services.emacs = { install = true; enable = false; - package = with pkgs; ((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: with epkgs; [ + package = with pkgs; ((emacsPackagesFor (emacsPgtk.overrideAttrs (old: { + passthru = old.passthru // { + treeSitter = true; + }; + }))).emacsWithPackages (epkgs: with epkgs; [ + # treesitter bits + treesit-grammars.with-all-grammars + vterm pdf-tools ])); -- cgit v1.3.1