summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2024-05-18 17:58:08 +0200
committerAlan Pearce2024-05-18 19:04:50 +0200
commitb449f3f3763b6212d15ebe179da86f827ee29c0e (patch)
tree63f93ba6270746253b93948cd146d3934369d8c7 /user/settings
parent3ba787dc4eefc243aa18f8bdc7859bc2d79957af (diff)
downloadnixfiles-b449f3f3763b6212d15ebe179da86f827ee29c0e.tar.lz
nixfiles-b449f3f3763b6212d15ebe179da86f827ee29c0e.tar.zst
nixfiles-b449f3f3763b6212d15ebe179da86f827ee29c0e.zip
emacs: use emacs service on linux
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 785b972c..27327af7 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -29,6 +29,11 @@ in
     xfuncname = "^(((;;;+ )|\\(|([ \t]+\\(((cl-|el-patch-)?def(un|var|macro|method|custom)|gb/))).*)$";
   };
 
+  services.emacs = lib.mkIf stdenv.isLinux {
+    enable = true;
+    package = config.programs.emacs.finalPackage;
+    client.enable = true;
+  };
   programs.emacs = {
     enable = true;
     package = lib.mkDefault (pkgs.emacs29.override { withGTK3 = true; });