Skip to content

Instantly share code, notes, and snippets.

@syohex
Created December 1, 2012 08:25
Show Gist options
  • Select an option

  • Save syohex/4181088 to your computer and use it in GitHub Desktop.

Select an option

Save syohex/4181088 to your computer and use it in GitHub Desktop.
Show pydoc in Emacs
;; 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