diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index cd3a491de..7decc2e0c 100644 Binary files a/dconf/.config/dconf/user and b/dconf/.config/dconf/user differ 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