aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/emacs/default.nix
blob: c63e481c814326024a290861798cdfe23b597b34 (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
{ ... }:
{
    flake.modules.homeManager.emacs =
        { pkgs, config, ... } :
        let
            tex = (pkgs.texlive.combine {
                inherit (pkgs.texlive) scheme-medium
                    dvisvgm dvipng # for preview and export as html
                    # svg transparent
                    etoolbox
                    subfiles
                    enumitem
                    wrapfig amsmath ulem hyperref capt-of;
            });
            myEmacs = (pkgs.emacsPackagesFor pkgs.emacs30).emacsWithPackages (epkgs: with epkgs; [
                # vterm
                # ghostel
                treesit-grammars.with-all-grammars
            ]);
        in
        {
            services.emacs = {
                enable = true;
                package = myEmacs;
            };

            home.packages = with pkgs; [
                mu
                emacsPackages.mu4e
                isync
                ispell
                poppler-utils
                tex
                ghostscript
                haskell-language-server
                myEmacs
            ];
        };
}