mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Add ein:notebook-rename-to-scratch-command
This commit is contained in:
parent
22fc876723
commit
b79a51c657
1 changed files with 8 additions and 0 deletions
|
@ -1116,6 +1116,14 @@ NAME is any non-empty string that does not contain '/' or '\\'."
|
|||
(run-hooks 'ein:notebook-after-rename-hook)))
|
||||
ein:notebook))
|
||||
|
||||
(defun ein:notebook-rename-to-scratch-command (name)
|
||||
"Rename notebook based on `ein:scratch-notebook-name-template'
|
||||
and save it immediately."
|
||||
(interactive
|
||||
(list (read-string "Rename notebook: "
|
||||
(ein:scratch-notebook-name))))
|
||||
(ein:notebook-rename-command name))
|
||||
|
||||
(defun ein:notebook-kill-kernel-then-close-command ()
|
||||
"Kill kernel and then kill notebook buffer.
|
||||
It does not kill buffer if killing kernel fails. To close
|
||||
|
|
Loading…
Add table
Reference in a new issue