aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules/emacs/default.nix
blob: 6a2690f9e5ba72a0b801a4df7169848a3ee8d575 (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
32
{
  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 package libraries and dictionaries for spell checking.
  home.packages = with pkgs.unstable; [
    emacsPackages.jinx
    enchant
    hunspellDicts.en-us-large
  ];
}