aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules/emacs/default.nix
blob: 7210f07f34413b287126bd9be540c908dfdae185 (plain)
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
{
  pkgs,
  ...
}:
{
  # Provide emacs and emacsclient.
  programs.emacs = {
    enable = true;
    package = pkgs.unstable.emacs30-gtk3;
    extraPackages = epkgs: with epkgs; [
      jinx
      mu4e
    ];
  };

  # Run emacs as a systemd daemon in graphical environments.
  services.emacs = {
    enable = true;
    package = pkgs.unstable.emacs30-gtk3;
    startWithUserSession = "graphical";
    defaultEditor = true;
    client.enable = true;
  };

  # Include dictionaries for spell checking.
  home.packages = with pkgs.unstable; [
    enchant
    hunspellDicts.en-us-large
  ];
}