mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
54b69d2ef8
Emacs populates 'exec-path' at launch from the 'PATH' environment variable. Likewise, the emacs derivation from nixpkgs populates 'load-path' from the 'NIX_PROFILES' variable. As neither of these are available by default in the systemd user manager, revert to the previous behavior of launching the Emacs daemon from a login shell. Fixes #1354 Fixes #1340 PR #1355
12 lines
351 B
Desktop File
12 lines
351 B
Desktop File
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Service]
|
|
ExecStart=@runtimeShell@ -l -c "@emacs@/bin/emacs --fg-daemon"
|
|
ExecStop=@emacs@/bin/emacsclient --eval '(kill-emacs 0)'
|
|
Restart=on-failure
|
|
|
|
[Unit]
|
|
Description=Emacs: the extensible, self-documenting text editor
|
|
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
|
|
X-RestartIfChanged=false
|