Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # have we requested to open in "other" emacs?
- OTHER=0
- if [[ "$1" == "-o" ]]; then
- shift
- OTHER=1
- fi
- # check to see if we're already inside emacs
- [[ "$INSIDE_EMACS" != "" ]] && OTHER=1
- # open file, creating a new client as necessary
- if [[ $OTHER -gt 0 ]]; then
- emacsclient -n "$@" > /dev/null &
- else
- emacsclient -c -nw "$@"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement