aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules/emacs/default.nix
blob: f6f9a73460f128c91e68f7a2f624f41ccc52282d (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
31
{
  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
  ];
}