summaryrefslogtreecommitdiff
path: root/modules/emacs.nix
blob: 526ce2c4d4f7fc3c812960754456411fcf8cdf81 (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
{ 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
      pdf-tools
    ]));
    defaultEditor = false;
  };

}