[Python] Activate ‘elpy’ when available

This commit is contained in:
dbo 2018-02-04 16:35:33 +01:00
parent acdcb5b9a6
commit 52bb157570
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 3 deletions

View File

@ -1351,9 +1351,10 @@ are assumed to be of the form *.crt."
(use-package python
:defer t
:config (progn
(setq python-indent-offset 4
python-shell-interpreter "/usr/bin/python")
(add-hook 'python-mode-hook 'highlight-indentation-mode)))
(setq python-indent-offset 2)
(add-hook 'python-mode-hook 'highlight-indentation-mode)
(when (package-installed-p 'elpy)
(elpy-enable))))
(use-package semantic
:commands (semantic-mode)