Switch out Elpy for lsp
This commit is contained in:
parent
47f45957aa
commit
c1d24bc66d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user