1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 12:49:48 +01:00
home-manager/tests/modules/services/emacs
Tad Fisher ac82c036d8
services/emacs: Update systemd definitions, drop Emacs 26 support
Emacs 27 added Type=notify support and updated the service definition to
remove the use of `emacsclient' to kill the service. Emacs 28 changes
the `StartupWMClass' in emacsclient.desktop to `Emacsd'. Update our
emacs.service and emacsclient.desktop definitions to match upstream
changes.

When killing emacs.service, the socket is removed, and subsequently
starting the service manually results in a service without a socket.
Prevent this by adding `RefuseManualStart=true' to the service's Unit
definition.

Drop Emacs 26 support as it is no longer shipped in nixpkgs. Update the
tests to verify the following configuration scenarios:

- Emacs version: 27, 28
- Socket activation: disabled, enabled
2021-06-06 01:00:19 +02:00
..
default.nix services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-27-emacsclient.desktop services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-28-emacsclient.desktop services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-service-27.nix services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-service-28.nix services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-service-emacs.service services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-socket-27.nix services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-socket-28.nix services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-socket-emacs.service services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00
emacs-socket-emacs.socket services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00