blob: 9f9e4f9c7b05b884f124868c3d028466e695bd36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
[Unit]
Description=Emacs: the extensible, self-documenting text editor
[Service]
Type=forking
ExecStart=%s -c "emacs --daemon"
ExecStop=%s -c 'emacsclient --eval "(kill-emacs)"'
Environment=PATH=%h/bin:/var/setuid-wrappers:%h/.nix-profile/bin:%h/.nix-profile/sbin:%h/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec
Restart=always
[Install]
WantedBy=default.target
|