mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 09:01:40 -05:00
add ein:quit to easily exit EIN without killing Emacs
This commit is contained in:
parent
da378d518a
commit
3f275425fd
1 changed files with 7 additions and 0 deletions
|
@ -1783,6 +1783,13 @@ the first argument and CBARGS as the rest of arguments."
|
|||
|
||||
(add-hook 'kill-emacs-query-functions 'ein:notebook-close-notebooks t)
|
||||
|
||||
(defun ein:quit (&optional force)
|
||||
"Close all notebooks and servers."
|
||||
(interactive "P")
|
||||
(ein:notebook-close-notebooks force)
|
||||
(ein:jupyter-server-stop force)) ; autoloaded
|
||||
|
||||
|
||||
(defun ein:notebook-kill-buffer-callback ()
|
||||
"Call notebook destructor. This function is called via `kill-buffer-hook'."
|
||||
;; TODO - it remains a bug that neither `ein:notebook-kill-buffer-callback'
|
||||
|
|
Loading…
Add table
Reference in a new issue