emacs daemon service

This commit is contained in:
janis 2025-09-05 15:01:18 +02:00
parent 1d15352241
commit 374145441e
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -6,6 +6,8 @@ let
ref = "main"; ref = "main";
rev = "41f5c3340a0232ea1c0e0bb44b0609b2956c3fe9"; rev = "41f5c3340a0232ea1c0e0bb44b0609b2956c3fe9";
}; };
emacs = pkgs.emacs-git-pgtk;
in { in {
# TODO: turn this into a FHS or package so these dependencies don't have to be # TODO: turn this into a FHS or package so these dependencies don't have to be
# accessible from the global namespace. # accessible from the global namespace.
@ -48,6 +50,9 @@ in {
hunspellDicts.de-de hunspellDicts.de-de
hunspellDicts.da-dk hunspellDicts.da-dk
# jinx from emacsPackages
emacsPackages.jinx
# language servers # language servers
pkgs.unstable.rust-analyzer pkgs.unstable.rust-analyzer
nixd]; nixd];
@ -57,32 +62,15 @@ in {
# source = emacs-config; # source = emacs-config;
# }; # };
# }; # };
services.emacs = {
enable = true;
package = emacs;
};
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = pkgs.emacs-git-pgtk; package = emacs;
extraPackages = (epkgs: with epkgs; [ extraPackages = (epkgs: with epkgs; [
jinx jinx
]); ]);
# pkgs.nixd
# (treesit-grammars.with-grammars (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
# ]))
# (with pkgs;
# (hunspellWithDicts [
# hunspellDicts.en-gb-ise
# hunspellDicts.en-gb-large
# hunspellDicts.de-de
# hunspellDicts.da-dk
# ]))
# ]);
}; };
} }