Created
December 1, 2012 08:25
-
-
Save syohex/4181088 to your computer and use it in GitHub Desktop.
Show pydoc in Emacs
This file contains hidden or 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
| ;; help utilities | |
| (defun my/python-help () | |
| (interactive) | |
| (let ((module (read-string "Pydoc module: " )) | |
| (buf (get-buffer-create "*Python Help*"))) | |
| (with-current-buffer (get-buffer-create buf) | |
| (erase-buffer) | |
| (call-process-shell-command (format "pydoc %s" module) nil t t) | |
| (goto-char (point-min))) | |
| (pop-to-buffer buf))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment