Skip to content

Instantly share code, notes, and snippets.

@asmeurer
Last active December 17, 2015 19:19
Show Gist options
  • Save asmeurer/5659568 to your computer and use it in GitHub Desktop.
Save asmeurer/5659568 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Is emacs-jedi already running?
ps -ef | grep jedi-port.lo[g] 2>&1 >/dev/null
if [[ $? -ne 0 ]]
then
# Replace the following 3 lines with your virtualenv
cd ~/Documents/emacs-jedi/env/
source bin/activate
nohup python ~/Documents/emacs-jedi/jediepcserver.py --port-file ~/Documents/emacs-jedi/jedi-port.log &
fi
## Finally start emacs with the given arguments ...
emacs "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment