Switch out Elpy for lsp

This commit is contained in:
Jeremy Dormitzer 2019-11-07 12:06:36 -05:00
parent 47f45957aa
commit c1d24bc66d

View File

@ -1338,11 +1338,18 @@ Configure Java project sources:
Elpy is a python IDE package:
#+BEGIN_SRC emacs-lisp
(use-package elpy
:init (elpy-enable))
;; (use-package elpy
;; :init (elpy-enable)
;; :config (setq elpy-rpc-python-command "python3"))
#+END_SRC
Integrate with pyenv:
Alternatively, use the LSP python client:
#+BEGIN_SRC emacs-lisp
(add-hook 'python-mode-hook #'lsp)
(general-def 'normal python-mode-map "C-c C-d" #'lsp-describe-thing-at-point)
#+END_SRC
Support pyvenv within Emacs:
#+BEGIN_SRC emacs-lisp
(use-package pyvenv
:config