diff --git a/modules/services/emacs.nix b/modules/services/emacs.nix index f33968c87..216645475 100644 --- a/modules/services/emacs.nix +++ b/modules/services/emacs.nix @@ -28,6 +28,10 @@ in Unit = { Description = "Emacs: the extensible, self-documenting text editor"; Documentation = "info:emacs man:emacs(1) https://gnu.org/software/emacs/"; + + # Avoid killing the Emacs session, which may be full of + # unsaved buffers. + X-RestartIfChanged = false; }; Service = {