nixconfig/emacs/emacs.nix

25 lines
549 B
Nix
Raw Normal View History

2023-11-15 16:09:47 +00:00
{ config, lib, pkgs, ...}:
{
2024-07-12 20:48:19 +00:00
home.file.".config/emacs/early-init.el" = {
2023-12-14 11:30:17 +00:00
enable = true;
2023-12-15 12:41:21 +00:00
text = ''
(setq package-enable-at-startup nil)
(setq package-install-upgrade-built-in t)
'';
2023-11-15 16:09:47 +00:00
};
2024-07-12 20:48:19 +00:00
home.file.".config/emacs/init.el" = {
2023-11-15 16:09:47 +00:00
enable = true;
text = builtins.readFile ./init.el;
};
2024-07-12 20:48:19 +00:00
home.file.".config/emacs/templates" = {
2023-11-15 16:09:47 +00:00
enable = true;
text = builtins.readFile ./templates;
};
programs.emacs = {
enable = true;
2023-12-15 12:41:21 +00:00
package = pkgs.emacs29-pgtk;
2024-07-12 20:48:19 +00:00
# extraConfig = builtins.readFile ./init.el;
2023-11-15 16:09:47 +00:00
};
}