mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Simplify ein:junk-new
This commit is contained in:
parent
9e6bc9e863
commit
5e569fe745
1 changed files with 2 additions and 5 deletions
|
@ -55,15 +55,12 @@ format string which can be passed to `format-time-string'."
|
|||
Notebook name is determined based on
|
||||
`ein:junk-notebook-name-template'.
|
||||
|
||||
When any prefix argument is given, this command asks notebook
|
||||
name to be used. When two universal prefix arguments (i.e.,
|
||||
``C-u C-u``) are given, this command asks URL or port to use."
|
||||
When prefix argument is given, it asks URL or port to use."
|
||||
(interactive (let ((name (ein:junk-notebook-name))
|
||||
(url-or-port (or (ein:get-url-or-port)
|
||||
(ein:default-url-or-port))))
|
||||
(setq name (read-string "Open notebook as: " name))
|
||||
(when current-prefix-arg
|
||||
(setq name (read-string "Rename notebook: " name)))
|
||||
(when (equal current-prefix-arg '(16))
|
||||
(setq url-or-port (ein:notebooklist-ask-url-or-port)))
|
||||
(list name url-or-port)))
|
||||
(ein:notebooklist-new-notebook-with-name name url-or-port))
|
||||
|
|
Loading…
Add table
Reference in a new issue