{ 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; }; services.emacs = { enable = true; package = pkgs.emacs29-pgtk; defaultEditor = true; extraOptions = []; startWithUserSession = true; client = { enable = true; arguments = []; }; }; }