-
-
Save jasonm23/8fad26d7bd7578503498e4db35355c97 to your computer and use it in GitHub Desktop.
shell function for Mac to open file(s) in emacs via Emacsclient or start a new Emacs app.
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
ec() { | |
emacsclient -n $@ 2> /dev/null | |
if [[ $? == 1 ]]; then | |
open -a Emacs.app -- $@ | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment