summaryrefslogtreecommitdiff
path: root/modules/emacs.nix
blob: 30332cf1deebc7e19b849fc12624d9a18a85f2f1 (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
{ pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    direnv
  ];

  programs.zsh.shellInit = ''
    eval "$(direnv hook zsh)"
  '';
  programs.bash.shellInit = ''
    eval "$(direnv hook bash)"
  '';


  services.emacs = {
    install = true;
    enable = false;
    package = with pkgs; ((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: with epkgs; [
      vterm
    ]));
    defaultEditor = false;
  };

}