From f32204ffceb7c7521f0d9462041d2867075c2729 Mon Sep 17 00:00:00 2001 From: Janis Date: Sun, 27 Jul 2025 01:36:00 +0200 Subject: [PATCH] emacs with tree-sitter and stuff --- home/emacs.nix | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/home/emacs.nix b/home/emacs.nix index c83db55..73911b2 100644 --- a/home/emacs.nix +++ b/home/emacs.nix @@ -7,6 +7,8 @@ let rev = "39d889549f2b0b5c5392852daa862437e080a710"; }; in { + # TODO: turn this into a FHS or package so these dependencies don't have to be + # accessible from the global namespace. home.packages = with pkgs; [ emacs enchant # spell checking @@ -15,19 +17,22 @@ in { nodejs_24 copilot-language-server-fhs cmake + libtool + gnumake gcc - tree-sitter texlive.combined.scheme-full - # tree-sitter-grammars.tree-sitter-c - # tree-sitter-grammars.tree-sitter-cpp - # tree-sitter-grammars.tree-sitter-zig - # tree-sitter-grammars.tree-sitter-nix - # tree-sitter-grammars.tree-sitter-toml - # tree-sitter-grammars.tree-sitter-wgsl - # tree-sitter-grammars.tree-sitter-rust - # tree-sitter-grammars.tree-sitter-bash - # tree-sitter-grammars.tree-sitter-elisp - # tree-sitter-grammars.tree-sitter-markdown + (tree-sitter.withPlugins (grammars: with grammars; [ + tree-sitter-bash + tree-sitter-nix + tree-sitter-toml + tree-sitter-elisp + tree-sitter-rust + tree-sitter-cpp + tree-sitter-c + tree-sitter-zig + tree-sitter-elisp + tree-sitter-markdown + ])) ]; # xdg.configFile = { # "emacs" = {