Browse Source

Properly spawn emacsclient in a new process

master
Riyyi 4 years ago
parent
commit
9c14034e39
  1. 4
      .local/bin/aliases

4
.local/bin/aliases

@ -7,9 +7,9 @@ depend() {
emacs() { emacs() {
# Create new frame (if there isnt one or no file is specified) # Create new frame (if there isnt one or no file is specified)
if [ -z "$(pgrep -f emacsclient.*-c)" ] || [ "$1" = "" ]; then if [ -z "$(pgrep -f emacsclient.*-c)" ] || [ "$1" = "" ]; then
emacsclient -a '' -c "$@" > /dev/null 2>&1 & setsid -f emacsclient -a '' -c "$@" > /dev/null 2>&1
else else
emacsclient -a '' "$@" > /dev/null 2>&1 & setsid -f emacsclient -a '' "$@" > /dev/null 2>&1
fi fi
} }

Loading…
Cancel
Save