diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-29 12:36:54 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-29 12:36:54 +0200 |
| commit | 4a5059ba54ae483647a8a56e295cf32c201f5d0f (patch) | |
| tree | b4bbd22ce46104f179355933a4a71ff186109d40 /emacs/emacs.service | |
| parent | 067bebe3e23a7f7f3e005911f6116cc292b0905d (diff) | |
| download | dotfiles-4a5059ba54ae483647a8a56e295cf32c201f5d0f.tar.gz dotfiles-4a5059ba54ae483647a8a56e295cf32c201f5d0f.zip | |
emacs: added a systemd unit file
I finally got to fix the crash that I was having when trying to execute Emacs
as a daemon. For this reason, now starting Emacs as a daemon during startup
should be sensible enough.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/emacs.service')
| -rw-r--r-- | emacs/emacs.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/emacs.service b/emacs/emacs.service new file mode 100644 index 0000000..d611118 --- /dev/null +++ b/emacs/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 |
