Skip to content

Instantly share code, notes, and snippets.

@aki237
Created September 13, 2016 08:40
Show Gist options
  • Save aki237/bab6e055f79a2d9d9e0e6c02f2a2afb3 to your computer and use it in GitHub Desktop.
Save aki237/bab6e055f79a2d9d9e0e6c02f2a2afb3 to your computer and use it in GitHub Desktop.
single emacs instance
#!/bin/sh
if [ -e "/tmp/emacs1000/server" ]; then
if [ $# == 0 ]; then
emacsclient -n -e "(other-frame 0)"
else
emacsclient -n $@
fi
else
/usr/bin/emacs $@ &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment