diff options
author | Sauyon Lee | 2015-10-10 23:40:23 +0100 |
---|---|---|
committer | Sauyon Lee | 2015-10-10 23:40:23 +0100 |
commit | e2c12cbdedf21e1b01800fd35b723a7676b0900b (patch) | |
tree | 39c6e0e804181b2147ccd41b6b50c9a25d300295 | |
download | aur-e2c12cbdedf21e1b01800fd35b723a7676b0900b.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | emacs.service | 12 | ||||
-rw-r--r-- | install | 3 |
5 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6914da446b7a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = systemd-emacs-daemon + pkgdesc = A per-user emacs daemon service for systemd + pkgver = 1 + pkgrel = 6 + url = http://www.emacswiki.org/emacs/EmacsAsDaemon#toc8 + install = install + arch = any + license = GPL + source = emacs.service + sha256sums = e1a159c131c69295dbeb2cdd0a3d66e3dd94d4a18329da839fdd14023d8bec61 + +pkgname = systemd-emacs-daemon + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8c07fac2b322 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*~ +*.tar.gz +*.tar.xz + +/*/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eabfb88672bd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: Sauyon Lee <sauyonl@sauyon.com> +# Contributor: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad> +# Contributor: Marc Coiffier <marc.coiffier@gmail.com> + +pkgname=systemd-emacs-daemon +pkgver=1 +pkgrel=6 +pkgdesc="A per-user emacs daemon service for systemd" +url='http://www.emacswiki.org/emacs/EmacsAsDaemon#toc8' +license=('GPL') + +install=install +arch=('any') +source=('emacs.service') +sha256sums=('e1a159c131c69295dbeb2cdd0a3d66e3dd94d4a18329da839fdd14023d8bec61') + +package() { + install -Dm644 "$srcdir"/emacs.service "$pkgdir"/usr/lib/systemd/user/emacs.service +} diff --git a/emacs.service b/emacs.service new file mode 100644 index 000000000000..9f7b33000ab0 --- /dev/null +++ b/emacs.service @@ -0,0 +1,12 @@ +[Unit] +Description=Emacs: the extensible, self-documenting text editor + +[Service] +Type=forking +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/install b/install new file mode 100644 index 000000000000..186d425bea44 --- /dev/null +++ b/install @@ -0,0 +1,3 @@ +post_install() { + printf "To enable systemd-emacs-daemon, use systemctl --user enable emacs.service.\n" +} |