summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-10-08 21:22:42 +0200
committerAlan Pearce2019-10-08 21:22:42 +0200
commit2ccac55456347fa2560c64b9c201c5a1f0478c0a (patch)
tree642a44ca324e779d0320b569c5be181099042852
parentb1c04a8d4482245a6f48bc2eeda5adf41f4c1851 (diff)
downloadnixfiles-2ccac55456347fa2560c64b9c201c5a1f0478c0a.tar.lz
nixfiles-2ccac55456347fa2560c64b9c201c5a1f0478c0a.tar.zst
nixfiles-2ccac55456347fa2560c64b9c201c5a1f0478c0a.zip
Emacs: separate files to link
-rw-r--r--user/modules/emacs.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/user/modules/emacs.nix b/user/modules/emacs.nix
index 5d73e585..10c87eeb 100644
--- a/user/modules/emacs.nix
+++ b/user/modules/emacs.nix
@@ -156,9 +156,14 @@ in
   home.sessionVariables = {
     EDITOR = "${editorScript}/bin/edit";
   };
-  home.file.".emacs.d" = {
+  home.file.".emacs.d/init.el".source = ../emacs/.emacs.d/init.el;
+  home.file.".emacs.d/main.el" = {
+    source = ../emacs/.emacs.d/main.el;
+  };
+  home.file.".emacs.d/eshell/" = {
     recursive = true;
-    source = ../emacs/.emacs.d;
+    source = ../emacs/.emacs.d/eshell;
   };
+
   home.file.".local/share/applications/emacsclient.desktop".source = desktopApplicationFile;
 }