tools/ein: fix void-variable ein:jupyter-default-notebook-directory error

This commit is contained in:
Henrik Lissner 2018-05-29 23:09:57 +02:00
parent bb6b91da9b
commit add020485e
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -28,14 +28,15 @@
'ein:company-backend))
:config
(setq ein:jupyter-server-args '("--no-browser")
ein:notebook-modes
(setq ein:notebook-modes
'(ein:notebook-multilang-mode ein:notebook-python-mode ein:notebook-plain-mode)
;; Slice images into rows; easier to navigate around images
ein:slice-image t)
(unless ein:jupyter-default-notebook-directory
(setq ein:jupyter-default-notebook-directory "~/"))
(after! ein-jupyter
(setq ein:jupyter-server-args '("--no-browser"))
(unless ein:jupyter-default-notebook-directory
(setq ein:jupyter-default-notebook-directory "~/")))
(defun +ein-buffer-p (buf)
(string-match-p "^\\*ein: .*" (buffer-name buf)))