#!/bin/sh ## Note: we do not use the (-a "") parameters of emacsclient to auto start the ## daemon since we want to pass additional parameters to emacs. if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then cat <&1)" = TTY ]; then param="-t" else if [ "${0##*/}" = "emw" ]; then param="-c" else param="-nc" fi fi [ ! -e /tmp/emacs$(id -u)/server ] && EMACS_SERVER=t emacs --daemon --no-site-file emacsclient $param "$@"