1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-04 18:29:45 +01:00
home-manager/tests/modules/services/emacs
Damien Cassou 931653b99f
emacs: optionally start service with the session
Add services.emacs.startWithUserSession boolean to indicate that Emacs
must be started with the systemd user session. This is true by default
unless socket activation is also true.

In the past, the user had to choose between socket activation (to get
the Emacs service started when the user uses emacsclient) and
immediate start with the user session. When choosing immediate start
over socket activation and if the Emacs service is stopped at some
point, using emacsclient would start a new Emacs daemon but the
service would still be turned off. This situation would prevent
`home-manager switch` from completing successfully because it wouldn't
be able to start the Emacs service as Emacs is already running.

This new setting makes it possible to have both socket activation and
immediate start at the same time. In this scenario, Emacs is started
with the user session and, after the Emacs service is stopped, using
emacsclient starts the service again.

This new settings also makes it possible to have neither socket
activation nor immediate start.
2022-06-19 01:09:41 +02:00
..
default.nix emacs: optionally start service with the session 2022-06-19 01:09:41 +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-default-editor.nix services/emacs: add option to set emacsclient as the default editor (#2545) 2022-01-10 02:17:13 -05:00
emacs-default-editor.sh services/emacs: add option to set emacsclient as the default editor (#2545) 2022-01-10 02:17:13 -05:00
emacs-service-27.nix services.emacs: add option extraOptions 2021-10-02 23:28:22 +02:00
emacs-service-28.nix services.emacs: add option extraOptions 2021-10-02 23:28:22 +02:00
emacs-service-emacs.service services.emacs: add option extraOptions 2021-10-02 23:28:22 +02:00
emacs-socket-27.nix services.emacs: add option extraOptions 2021-10-02 23:28:22 +02:00
emacs-socket-28.nix services.emacs: add option extraOptions 2021-10-02 23:28:22 +02:00
emacs-socket-and-startWithUserSession.nix emacs: optionally start service with the session 2022-06-19 01:09:41 +02:00
emacs-socket-emacs.service services.emacs: add option extraOptions 2021-10-02 23:28:22 +02:00
emacs-socket-emacs.socket services/emacs: Update systemd definitions, drop Emacs 26 support 2021-06-06 01:00:19 +02:00