blob: 982a3a6a52e2c83df3de475772f49fc1aee861f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ pkgs }: let
outside-emacs = with pkgs; [
git
nil
ripgrep
tinymist
delta
emacs-lsp-booster
];
in
pkgs.emacsWithPackagesFromUsePackage {
package = pkgs.emacs-unstable.override {
withGTK3 = pkgs.stdenv.isLinux;
withAlsaLib = pkgs.stdenv.isLinux;
withSystemd = pkgs.stdenv.isLinux;
withToolkitScrollBars = true;
withNativeCompilation = true;
withImageMagick = true;
};
override = epkgs: let
callPackage = pkgs.lib.callPackageWith (pkgs // epkgs);
in epkgs // {
eglot-booster = callPackage ./eglot-booster.nix {};
eldoc-diffstat = callPackage ./eldoc-diffstat.nix {};
};
config = ./README.org;
alwaysTangle = true;
alwaysEnsure = true;
defaultInitFile = true;
extraEmacsPackages = epkgs: [
(epkgs.treesit-grammars.with-grammars (g: with g; [
tree-sitter-rust
tree-sitter-python
tree-sitter-nix
tree-sitter-haskell
tree-sitter-yaml
tree-sitter-typst
]))
] ++ outside-emacs;
}
|