Created
September 13, 2016 08:40
-
-
Save aki237/bab6e055f79a2d9d9e0e6c02f2a2afb3 to your computer and use it in GitHub Desktop.
single emacs instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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