Commit de45d914 authored by Sam Steingold's avatar Sam Steingold

python-describe-at-point: add and bind

parent 07ebcf1b
......@@ -330,6 +330,7 @@
;; Some util commands
(define-key map "\C-c\C-v" 'python-check)
(define-key map "\C-c\C-f" 'python-eldoc-at-point)
(define-key map "\C-c\C-d" 'python-describe-at-point)
;; Utilities
(substitute-key-definition 'complete-symbol 'completion-at-point
map global-map)
......@@ -4331,6 +4332,11 @@ Interactively, prompt for symbol."
nil nil symbol))))
(message (python-eldoc--get-doc-at-point symbol)))
(defun python-describe-at-point (symbol process)
(interactive (list (python-info-current-symbol)
(comint-send-string process (concat "help('" symbol "')\n")))
;;; Hideshow
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment