Created
January 6, 2020 17:26
-
-
Save chaoky/41ab26764688ea8250d973d4e265a9ba to your computer and use it in GitHub Desktop.
Emacs will only create a new window if none exist
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
e() { | |
#return a list of all frames on $DISPLAY | |
emacsclient -e "(frames-on-display-list \"$DISPLAY\")" &>/dev/null | |
if [ $? -eq 0 ]; then | |
emacsclient -n "$@" | |
else | |
emacsclient -nc "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment