mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-24 16:28:41 -05:00
Update
This commit is contained in:
parent
08cd7160a0
commit
ba8724c248
Binary file not shown.
34
localbin/.local/bin/repomacs
Executable file
34
localbin/.local/bin/repomacs
Executable file
@ -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
|
1
systemd/.config/systemd/user/default.target.wants/emacs.service
Symbolic link
1
systemd/.config/systemd/user/default.target.wants/emacs.service
Symbolic link
@ -0,0 +1 @@
|
||||
/home/repo/.config/systemd/user/emacs.service
|
13
systemd/.config/systemd/user/emacs.service
Normal file
13
systemd/.config/systemd/user/emacs.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user