From c1d24bc66d4a6f16512e5fc2fbc24933cada3a6a Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 7 Nov 2019 12:06:36 -0500 Subject: [PATCH] Switch out Elpy for lsp --- emacs/init.org | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index dba54b7..c3579fc 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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