about summary refs log tree commit diff
path: root/modules/nixos/emacs.nix
blob: 8a59c9b439cb2028e74048cd83ad45623ddfd80a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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"
    ];
  };
}

Consider giving Nix/NixOS a try! <3