Skip to content

Instantly share code, notes, and snippets.

@ptrv
Created December 29, 2016 11:36
Show Gist options
  • Save ptrv/d394fd2cb819e36aae022b6a9653589a to your computer and use it in GitHub Desktop.
Save ptrv/d394fd2cb819e36aae022b6a9653589a to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$(pidof emacs)" ] ; then
emacsclient "$@" &
else
emacs -mm --no-bitmap-icon "$@" &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment