Skip to content

Instantly share code, notes, and snippets.

@shanecelis
Created May 28, 2014 20:34
Show Gist options
  • Save shanecelis/1049d7f86a45ab10fafe to your computer and use it in GitHub Desktop.
Save shanecelis/1049d7f86a45ab10fafe to your computer and use it in GitHub Desktop.
Simple Emacs utility function to lookup Unity API references
;; Simple Emacs utility function to lookup Unity API references by Shane Celis.
(defun unity-api-lookup (string)
"Opens up a browser to Google's first hit for the search string 'unity api reference ' plus your search term."
(interactive (list
(read-string "Look up Unity API reference for: "
(thing-at-point 'word) 'unity-api-lookup-history)))
(browse-url (concat "http://www.google.com/search?btnI&q="
(url-hexify-string
(concat "unity api reference " string)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment