nixconfig/emacs/emacs.nix
2024-07-12 22:48:28 +02:00

24 lines
549 B
Nix

{ config, lib, pkgs, ...}:
{
home.file.".config/emacs/early-init.el" = {
enable = true;
text = ''
(setq package-enable-at-startup nil)
(setq package-install-upgrade-built-in t)
'';
};
home.file.".config/emacs/init.el" = {
enable = true;
text = builtins.readFile ./init.el;
};
home.file.".config/emacs/templates" = {
enable = true;
text = builtins.readFile ./templates;
};
programs.emacs = {
enable = true;
package = pkgs.emacs29-pgtk;
# extraConfig = builtins.readFile ./init.el;
};
}