From d74f9db1fe3cfbd34ef3e1cf1994fe47b964f317 Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 19 Nov 2022 01:29:53 -0400 Subject: [PATCH] Delete not more necesary client runner bash script. --- emacs-client-runner.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 emacs-client-runner.sh diff --git a/emacs-client-runner.sh b/emacs-client-runner.sh deleted file mode 100755 index 427cc78..0000000 --- a/emacs-client-runner.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -# start emacs server if not is running -systemctl --user status emacs > /dev/null 2>&1 || systemctl --user start emacs > /dev/null 2>&1 - -# if args is -nw or -t run on terminal -if [ "$1" == "-t" ] || [ "$1" == "-nw" ]; then - emacsclient -t - exit -fi - -# if no args open new frame -if [ $# -eq 0 ]; then - emacsclient -c -n - emacsclient --eval "(progn (select-frame-set-input-focus (selected-frame)))" - exit -fi - -emacsclient -e "(frames-on-display-list \"$DISPLAY\")" &>/dev/null - -emacsclient -c -n "$*"