소스 검색

Add emacs service

Colin Powell 6 년 전
부모
커밋
a1d1aab0fa
2개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      systemd/.config/systemd/user/default.target.wants/emacs.service
  2. 11 0
      systemd/.config/systemd/user/emacs.service

+ 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