Use run-python instead of python-shell-switch-to-shell

This commit is contained in:
Jeremy Dormitzer 2019-04-23 07:16:30 -04:00
parent fb4a705dd3
commit 27caed7119

View File

@ -1047,6 +1047,7 @@ Configure Java project sources:
* Python
#+BEGIN_SRC emacs-lisp
(add-hook 'python-mode-hook #'lsp)
(leader-def-key "sp" #'run-python)
#+END_SRC
Elpy is a python IDE package:
@ -1055,7 +1056,6 @@ Elpy is a python IDE package:
:config
(pyvenv-mode))
(leader-def-key "sp" #'python-shell-switch-to-shell)
(defun eshell/workon (name)
(pyvenv-workon name))