summaryrefslogtreecommitdiff
path: root/modules/nixos/emacs.nix
blob: c8513897167f89f79f3155922ca4e6f235d38447 (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
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.emacs;
in {
  config = mkIf cfg.enable {
    nixfiles.modules = {
      common.xdg.defaultApplications.emacs = [
        "application/atom+xml"
        "application/json"
        "application/rss+xml"
        "application/schema+json"
        "application/xhtml+xml"
        "application/xml"
        "text/csv"
        "text/plain"
      ];

      x11.enable = true;
    };
  };
}