Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Open script files from "unity" in emacs and go to a line
- #
- # SETUP:
- # Unity->Preferences->External Tools
- # Set "External Script Editor" to this file
- # Hint: Navigate to the directory with this script and select it, choose rename and then click open
- # Set "External Script Editor Args" to: $(Line) $(File)
- # open emacs with args LINE and FILE
- /usr/local/bin/emacsclient -n "+${1:-0}" $2
- # set focus on iterm
- osascript -e 'activate application "iTerm2"'
- # DEBUG INFO
- # echo "Args: 1=$1 2=$2" >> ~/dotfiles/unity-emacs-opener.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement