Kill the buffer local value of jupyter-repl-current-client when disabling juptyer-repl-interaction-mode

This commit is contained in:
Nathaniel Nicandro 2018-01-22 19:30:14 -06:00
parent 436b904572
commit 2542f819fb

View file

@ -1761,6 +1761,8 @@ that of CLIENT."
company-backends)
(setq-local company-backends
(cons 'company-jupyter-repl company-backends))))
(unless (eq major-mode 'jupyter-repl-mode)
(kill-local-variable 'jupyter-repl-current-client))
(when (boundp 'company-mode)
(setq-local company-backends
(delq 'company-jupyter-repl company-backends)))))