all repos — nixfiles @ b449f3f3763b6212d15ebe179da86f827ee29c0e

System and user configuration, managed by nix and home-manager

emacs: use emacs service on linux
Alan Pearce alan@alanpearce.eu
Sat, 18 May 2024 17:58:08 +0200
commit

b449f3f3763b6212d15ebe179da86f827ee29c0e

parent

3ba787dc4eefc243aa18f8bdc7859bc2d79957af

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -29,6 +29,11 @@ programs.git.extraConfig."diff.elisp" = {     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; });