mirror of
https://github.com/nix-community/home-manager
synced 2024-12-05 02:50:07 +00: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
336 B
Desktop File
9 lines
336 B
Desktop File
[Service]
|
|
ExecStart=@runtimeShell@ -l -c "@emacs@/bin/emacs --fg-daemon='%T/emacs%U/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
|