Selaa lähdekoodia

Add emacs service

Colin Powell 6 vuotta sitten
vanhempi
commit
a1d1aab0fa

+ 1 - 0
systemd/.config/systemd/user/default.target.wants/emacs.service

@@ -0,0 +1 @@
+/home/powellc/.config/systemd/user/emacs.service

+ 11 - 0
systemd/.config/systemd/user/emacs.service

@@ -0,0 +1,11 @@
+[Unit]
+Description=Emacs: the extensible, self-documenting text editor
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/emacs --daemon
+ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
+Restart=always
+
+[Install]
+WantedBy=default.target