summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2020-08-26 14:03:07 +0200
committerAlan Pearce2020-08-26 14:03:50 +0200
commit9958179f026bf5e604d16c8b6188a95fd422de2a (patch)
tree494cefa8a269eec4ca8b645160e62f7a7460f1ea /user/settings
parent3937dbd373054643862bed55e11280d2f34b6eeb (diff)
downloadnixfiles-9958179f026bf5e604d16c8b6188a95fd422de2a.tar.lz
nixfiles-9958179f026bf5e604d16c8b6188a95fd422de2a.tar.zst
nixfiles-9958179f026bf5e604d16c8b6188a95fd422de2a.zip
Emacs: move relevant config to early-init
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 = ''