summary refs log tree commit diff
path: root/mixins/emacs/default.nix
blob: 27e1106cb7182dc95857060295279b47505c5490 (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
33
34
35
36
37
38
39
40
41
{
  pkgs,
  lib,
  config,
  inputs,
  ...
}: {
  imports = [
  ];
  config = {
    home-manager.users.tzlil = {
      pkgs,
      config,
      nixosConfig,
      ...
    } @ hm: {
      home = {
        packages = with pkgs; [
        ];
      };
      services.emacs = {
        enable = true;
        defaultEditor = true;
        startWithUserSession = true;
        client.enable = true;
        package = with pkgs; (emacsWithPackages (with emacsPackagesNg; [
          evil
          nix-mode
          org
          python-mode
        ]));
      };
      # xdg.configFile."emacs/init.el".text = builtins.readFile ./init.el;
      # non client
      programs.emacs = {
        enable = true;
        extraConfig = builtins.readFile ./init.el;
      };
    };
  };
}