Defer loading elpy

This commit is contained in:
Andreas Zweili 2022-12-13 23:21:14 +01:00
parent 628d2ae881
commit f5e7d711c3
1 changed files with 3 additions and 1 deletions

View File

@ -4,10 +4,12 @@
(setq python-shell-interpreter "python3"))
(use-package elpy
:defer t
:config
(setq elpy-test-runner 'elpy-test-pytest-runner
elpy-formatter 'black
elpy-rpc-virtualenv-path 'system
eldoc-idle-delay 1)
(add-hook 'python-mode-hook (lambda () (highlight-indentation-mode -1)))
(elpy-enable))
:init
(advice-add 'python-mode :before 'elpy-enable))