summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 1ce4fc23..3d353bcc 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -189,6 +189,12 @@ in
   home.sessionVariables = {
     EDITOR = "${editorScript}/bin/edit";
   };
+  xdg.configFile."emacs/early-init.el" = {
+    source = ../emacs/early-init.el;
+    onChange = ''
+      ${config.programs.emacs.finalPackage}/bin/emacs -Q -batch -f batch-byte-compile .config/emacs/early-init.el
+      '';
+  };
   xdg.configFile."emacs/init.el" = {
     source = ../emacs/init.el;
     onChange = ''