aboutsummaryrefslogtreecommitdiff
path: root/home-manager/emacs/default.nix
blob: 6bb1dc6a5b73a3d4771a16625238edeb1eb56253 (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
{ 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
        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
    ];
}