mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Add ein:connect-request-tool-tip-or-help-command
This commit is contained in:
parent
7a2f998195
commit
41baba4410
1 changed files with 8 additions and 1 deletions
|
@ -87,10 +87,16 @@
|
|||
;; FIXME: refactor `ein:notebook-request-tool-tip'
|
||||
(ein:notebook-request-tool-tip notebook nil func)))))
|
||||
|
||||
(defun ein:notebook-request-help-command ()
|
||||
(defun ein:connect-request-help-command ()
|
||||
(interactive)
|
||||
(ein:notebook-request-help (ein:connect-get-notebook)))
|
||||
|
||||
(defun ein:connect-request-tool-tip-or-help-command (&optional pager)
|
||||
(interactive "P")
|
||||
(if pager
|
||||
(ein:connect-request-help-command)
|
||||
(ein:connect-request-tool-tip-command)))
|
||||
|
||||
(defun ein:connect-pop-to-notebook ()
|
||||
(interactive)
|
||||
(pop-to-buffer (ein:notebook-buffer (ein:connect-get-notebook))))
|
||||
|
@ -99,6 +105,7 @@
|
|||
(let ((map (make-sparse-keymap)))
|
||||
(define-key map "\C-c\C-c" 'ein:connect-eval-buffer)
|
||||
(define-key map "\C-c\C-r" 'ein:connect-eval-region)
|
||||
(define-key map "\C-c\C-f" 'ein:connect-request-tool-tip-or-help-command)
|
||||
(define-key map "\C-c\C-z" 'ein:connect-pop-to-notebook)
|
||||
map))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue