dotfiles

Yes, my $HOME has a git repo now :(

git clone git://git.shimmy1996.com/dotfiles.git
commit 921532064bc646b5f78c20062f1759c412553474
parent b0320e2fb677f77e4e50a189c6034d9b6fcc9579
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue,  1 Dec 2020 19:38:54 -0600

Directly include the emacs.service file

Diffstat:
A.config/systemd/user/emacs.service | 14++++++++++++++
D.config/systemd/user/emacs.service.d/override.conf | 3---
M.gitignore | 3+--
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Emacs: the extensible, self-documenting text editor
+
+[Service]
+Type=forking
+Environment="LC_CTYPE=zh_CN.UTF-8" "XMODIFIERS=@im=fcitx" "SSH_AUTH_SOCK=%t/keyring/ssh"
+ExecStart=/usr/bin/emacs --daemon
+ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
+Environment=SSH_AUTH_SOCK=%t/keyring/ssh
+Restart=always
+
+[Install]
+WantedBy=default.target+
\ No newline at end of file
diff --git a/.config/systemd/user/emacs.service.d/override.conf b/.config/systemd/user/emacs.service.d/override.conf
@@ -1,2 +0,0 @@
-[Service]
-Environment="LC_CTYPE=zh_CN.UTF-8" "XMODIFIERS=@im=fcitx" "SSH_AUTH_SOCK=%t/keyring/ssh"-
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
@@ -56,8 +56,7 @@
 !.config/systemd/user/ipfs.service
 !.config/systemd/user/mbsync.service
 !.config/systemd/user/mbsync.timer
-!.config/systemd/user/emacs.service.d
-!.config/systemd/user/emacs.service.d/override.conf
+!.config/systemd/user/emacs.service
 !.config/tbsm
 !.config/tbsm/tbsm.conf
 !.config/urlscan