blob: 073e7bdd81d4cc278d5d884b7b3acb6dfb0e6c4d (
plain) (
tree)
|
|
{ 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; [
emacsPgtkNativeComp
# 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=";
};
};
}
|