Created
May 28, 2014 20:34
-
-
Save shanecelis/1049d7f86a45ab10fafe to your computer and use it in GitHub Desktop.
Simple Emacs utility function to lookup Unity API references
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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