Advertisement
Guest User

Untitled

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