summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-26 09:19:37 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-26 09:19:37 +0000
commitb14ed5a75f8329764c53f41a1e319a04e8280305 (patch)
tree005d381937c184e8bc1f485d2c07b7e51fdb9217 /init.el
parenta2ff566f413bb7abc0c62a899846ed565a35f842 (diff)
Fixed elpy-mode
Diffstat (limited to 'init.el')
-rw-r--r--init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.el b/init.el
index e4f8628..6e6d7b1 100644
--- a/init.el
+++ b/init.el
@@ -545,8 +545,12 @@
;; Python programming
(use-package elpy
:ensure py-autopep8
+ :defer t
+ :init
+ (elpy-enable)
:config
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
+ (setq elpy-rpc-python-command "python3")
(setq python-shell-interpreter "ptipython"
python-shell-interpreter-args "console --simple-prompt"
python-shell-prompt-detect-failure-warning nil)