diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-03 13:26:44 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-03 13:26:44 +0100 |
commit | 269f143489fa77200799ed0e1199762733d86252 (patch) | |
tree | e25add6ea7bd0a50dc8370653b10a785c5b9e6d0 /.config/systemd | |
parent | 6ef619c9e351d7a3a9d066c67ede58e5f4c31c18 (diff) | |
parent | 48cd5862c2982ec6f48d086e8683d486588e3f4f (diff) | |
download | dotfiles-269f143489fa77200799ed0e1199762733d86252.tar dotfiles-269f143489fa77200799ed0e1199762733d86252.tar.gz dotfiles-269f143489fa77200799ed0e1199762733d86252.tar.bz2 dotfiles-269f143489fa77200799ed0e1199762733d86252.tar.xz dotfiles-269f143489fa77200799ed0e1199762733d86252.zip |
Merge branch 'master' of git.yggdrasil.li:dotfiles
Diffstat (limited to '.config/systemd')
-rw-r--r-- | .config/systemd/user/emacs.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service new file mode 100644 index 0000000..a552611 --- /dev/null +++ b/.config/systemd/user/emacs.service | |||
@@ -0,0 +1,12 @@ | |||
1 | [Unit] | ||
2 | Description=Emacs: the extensible, self-documenting text editor | ||
3 | |||
4 | [Service] | ||
5 | Type=forking | ||
6 | ExecStart=/bin/sh -c "emacs --daemon" | ||
7 | ExecStop=/bin/sh -c 'emacsclient --eval "(kill-emacs)"' | ||
8 | 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 | ||
9 | Restart=always | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=default.target | ||