mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-25 00:38:20 -05:00
34 lines
612 B
Plaintext
34 lines
612 B
Plaintext
|
#!/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
|