emacs-or-client 105 B

1234567
  1. #!/bin/sh
  2. if emacsclient --alternate-editor=false -e 't' ; then
  3. emacsclient -c -n
  4. else
  5. emacs
  6. fi