aboutsummaryrefslogtreecommitdiff
path: root/home-manager/emacs/default.nix
blob: 746e084d043e7ad1803d874f602f3703da260d82 (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
{ pkgs, config, ... } :
let
    tex = (pkgs.texlive.combine {
        inherit (pkgs.texlive) scheme-medium
            dvisvgm dvipng # for preview and export as html
            etoolbox
            subfiles
            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
        myEmacs
    ];
}