Start emacsclient nicely
This will start emacsclient or emacs as an X app or a console app depending on the type of connection you are using.
#!/bin/sh
SERVER_PATH=~/.emacs.d/server/server
if [ $DISPLAY ]
then
nohup emacsclient -s $SERVER_PATH -c -a emacs $* > /dev/null &
else
emacsclient -s $SERVER_PATH -t -a emacs $*
fi
Written by Daniel Parnell
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tags
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#