From 67ad6c4f892aade9060ab4e218685bfe331d4991 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Jul 2015 22:49:49 +0200 Subject: Added systemd units for emacs and urxvtd --- .config/systemd/user/emacs.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/systemd/user/emacs.service (limited to '.config/systemd/user/emacs.service') diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service new file mode 100644 index 0000000..9f9e4f9 --- /dev/null +++ b/.config/systemd/user/emacs.service @@ -0,0 +1,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 -- cgit v1.2.3