Set python-interpreter
This commit is contained in:
parent
271c00e4b8
commit
71b32782e3
1 changed files with 4 additions and 0 deletions
4
init.el
4
init.el
|
@ -597,6 +597,10 @@
|
||||||
("\\.j2" . python-mode))
|
("\\.j2" . python-mode))
|
||||||
:hook (python-mode . abbrev-mode)
|
:hook (python-mode . abbrev-mode)
|
||||||
:init
|
:init
|
||||||
|
(setq python-interpreter
|
||||||
|
(cond ((executable-find "python3") "python3")
|
||||||
|
((executable-find "python") "python")
|
||||||
|
(t "python3")))
|
||||||
(setq python-indent-guess-indent-offset nil)
|
(setq python-indent-guess-indent-offset nil)
|
||||||
(setq python-indent-offset 4)
|
(setq python-indent-offset 4)
|
||||||
(setq python-shell-interpreter "ipython")
|
(setq python-shell-interpreter "ipython")
|
||||||
|
|
Loading…
Add table
Reference in a new issue