Add python LSP mode

This commit is contained in:
Wojciech Kozlowski 2019-03-17 17:31:22 +01:00
parent a037daabe4
commit 09fd19d08c

View File

@ -146,16 +146,23 @@
(use-package python
:init
(setq python-shell-interpreter "python3"))
(setq python-shell-interpreter "python3")
:hook
(python-mode . lsp))
(use-package elpy
:hook (python-mode . elpy-mode)
:after flycheck
:init (elpy-enable)
:config
(unbind-key "C-c C-f" python-mode-map)
(unbind-key "C-c C-f" elpy-mode-map)
(setq elpy-rpc-python-command "python3")
(setq python-shell-interpreter "ipython3"
python-shell-interpreter-args "-i --simple-prompt"))
python-shell-interpreter-args "-i --simple-prompt")
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
(use-package py-autopep8
;; Note that this package require autopep8 to be installed.