mirror of
https://github.com/nix-community/home-manager
synced 2024-08-23 12:36:30 +02:00
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
10 lines
336 B
Desktop File
10 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
|