blob: 156c922e776b4269732c542b74a0e291d2bf9949 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ lib, config, pkgs, ... }:
let cfg = config.my.home.emacs;
in
{
options.my.home.emacs = with lib; {
enable = mkEnableOption "emacs configuration";
};
config.home = lib.mkIf cfg.enable {
packages = with pkgs; [
emacsPgtk
# see https://github.com/hlissner/doom-emacs/issues/4138
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science ]))
nixpkgs-fmt
];
sessionVariables = {
EDITOR = "emacsclient -a=";
VISUAL = "emacsclient -a=";
};
};
}
|