Skip to content

Instantly share code, notes, and snippets.

@tototoshi
Created August 11, 2011 16:57
Show Gist options
  • Save tototoshi/1140177 to your computer and use it in GitHub Desktop.
Save tototoshi/1140177 to your computer and use it in GitHub Desktop.
pythonのドキュメント検索
(defvar my-py-docs-python-org-url "http://docs.python.org")
(defun my-py-search-documentation-interactive (word)
(interactive "sSEARCH: ")
(my-py-search-documentation word))
(defun my-py-search-documentation-at-point ()
(interactive)
(let ((word (current-word)))
(when word
(my-py-search-documentation word))))
(defun my-py-search-documentation (word)
(browse-url (format "%s/search.html?q=%s" my-py-docs-python-org-url word)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment