[Python] Activate ‘elpy’ when available

This commit is contained in:
Daniel - 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 (use-package python
:defer t :defer t
:config (progn :config (progn
(setq python-indent-offset 4 (setq python-indent-offset 2)
python-shell-interpreter "/usr/bin/python") (add-hook 'python-mode-hook 'highlight-indentation-mode)
(add-hook 'python-mode-hook 'highlight-indentation-mode))) (when (package-installed-p 'elpy)
(elpy-enable))))
(use-package semantic (use-package semantic
:commands (semantic-mode) :commands (semantic-mode)