mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Add notebook list menu
This commit is contained in:
parent
7eee1e8cda
commit
ed813c2b8e
2 changed files with 10 additions and 2 deletions
|
@ -517,7 +517,7 @@ v0.2
|
||||||
don't need to save it. You can use try any code without saving
|
don't need to save it. You can use try any code without saving
|
||||||
junks in your notebook. Use the command
|
junks in your notebook. Use the command
|
||||||
:el:symbol:`ein:notebook-scratchsheet-open` to open scratch sheet.
|
:el:symbol:`ein:notebook-scratchsheet-open` to open scratch sheet.
|
||||||
* Menu support in notebook mode.
|
* Menu support in notebook mode and notebook list mode.
|
||||||
* Auto-connection support.
|
* Auto-connection support.
|
||||||
The new function :el:symbol:`ein:connect-to-default-notebook` can be
|
The new function :el:symbol:`ein:connect-to-default-notebook` can be
|
||||||
added to :el:symbol:`python-mode-hook` to automatically connect
|
added to :el:symbol:`python-mode-hook` to automatically connect
|
||||||
|
|
|
@ -411,7 +411,15 @@ See also:
|
||||||
(define-key map "g" 'ein:notebooklist-reload)
|
(define-key map "g" 'ein:notebooklist-reload)
|
||||||
(define-key map "p" 'ein:notebooklist-prev-item)
|
(define-key map "p" 'ein:notebooklist-prev-item)
|
||||||
(define-key map "n" 'ein:notebooklist-next-item)
|
(define-key map "n" 'ein:notebooklist-next-item)
|
||||||
(define-key map "q" 'bury-buffer))
|
(define-key map "q" 'bury-buffer)
|
||||||
|
(easy-menu-define ein:notebooklist-menu map "EIN Notebook List Mode Menu"
|
||||||
|
`("EIN Notebook List"
|
||||||
|
,@(ein:generate-menu
|
||||||
|
'(("Reload" ein:notebooklist-reload)
|
||||||
|
("New Notebook" ein:notebooklist-new-notebook)
|
||||||
|
("New Notebook (with name)"
|
||||||
|
ein:notebooklist-new-notebook-with-name)
|
||||||
|
("New Junk Notebook" ein:junk-new))))))
|
||||||
|
|
||||||
(provide 'ein-notebooklist)
|
(provide 'ein-notebooklist)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue