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