mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +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
9 lines
334 B
Desktop File
9 lines
334 B
Desktop File
[Service]
|
|
ExecStart=@runtimeShell@ -l -c "@emacs@/bin/emacs --fg-daemon='%t/emacs/server'"
|
|
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
|