From ba8724c248df230baf95a8cc568b19b2fc3059f2 Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Wed, 2 Aug 2023 09:34:21 +0100 Subject: [PATCH] Update --- dconf/.config/dconf/user | Bin 27275 -> 27275 bytes localbin/.local/bin/repomacs | 34 ++++++++++++++++++ .../user/default.target.wants/emacs.service | 1 + systemd/.config/systemd/user/emacs.service | 13 +++++++ 4 files changed, 48 insertions(+) create mode 100755 localbin/.local/bin/repomacs create mode 120000 systemd/.config/systemd/user/default.target.wants/emacs.service create mode 100644 systemd/.config/systemd/user/emacs.service diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index cd3a491de42c7b9709c6d42b6d4b3924bf5122f6..7decc2e0c921c3d24299826119cf2c4ab9028663 100644 GIT binary patch delta 27 icmeCa%GiCCaYKLwBje^ki}&2DEsP8d<(pky+|&SzqzK#q delta 27 icmeCa%GiCCaYKLwBg5uEi}&2DeT)nYjhkIv+|&S!GYIbh diff --git a/localbin/.local/bin/repomacs b/localbin/.local/bin/repomacs new file mode 100755 index 000000000..ebf9b15b1 --- /dev/null +++ b/localbin/.local/bin/repomacs @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +#-*-coding:utf-8 -*- +#Auto updated? +# Yes +#File: +# repomacs +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +#Created: +# Wed 02 August 2023, 09:30:44 AM [GMT+1] +#Modified: +# Wed 02 August 2023, 09:33:35 AM [GMT+1] +# +#Description: +# run emacs in client mode +# +#Dependencies: +# emacs +# + +if command -v emacsclient &>/dev/null; then + if ! pgrep -f "emacsclient" >/dev/null; then + ( + emacsclient -c + ) & + else + echo "repomacs already Running" + fi +else + echo "emacsclient can not be found" +fi \ No newline at end of file diff --git a/systemd/.config/systemd/user/default.target.wants/emacs.service b/systemd/.config/systemd/user/default.target.wants/emacs.service new file mode 120000 index 000000000..bc96cba00 --- /dev/null +++ b/systemd/.config/systemd/user/default.target.wants/emacs.service @@ -0,0 +1 @@ +/home/repo/.config/systemd/user/emacs.service \ No newline at end of file diff --git a/systemd/.config/systemd/user/emacs.service b/systemd/.config/systemd/user/emacs.service new file mode 100644 index 000000000..d228c89ef --- /dev/null +++ b/systemd/.config/systemd/user/emacs.service @@ -0,0 +1,13 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure + +[Install] +WantedBy=default.target \ No newline at end of file