[Python] Activate ‘elpy’ when available
This commit is contained in:
parent
acdcb5b9a6
commit
52bb157570
7
init.el
7
init.el
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue