summaryrefslogtreecommitdiffstats
path: root/lisp/init-python.el
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-12-07 18:06:01 +0100
committerMartin Polden <mpolden@mpolden.no>2021-12-07 18:07:28 +0100
commit7e3886d548b20882f1be3621a98a13af1c803086 (patch)
tree4bfd5dd31c55b211a2942942b1fe3a2387b673b7 /lisp/init-python.el
parentb01ffaa37b5938e8e2576fa31362c14a5d9800de (diff)
python: Prefer ipython3
Diffstat (limited to 'lisp/init-python.el')
-rw-r--r--lisp/init-python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el
index f3b8498..e4b5d9a 100644
--- a/lisp/init-python.el
+++ b/lisp/init-python.el
@@ -15,12 +15,12 @@
:hook (python-mode . mpolden/python-mode-buffer-local-variables)
:config
;; set prefered interpreter
- (setq python-shell-interpreter (cond ((executable-find "ipython") "ipython")
+ (setq python-shell-interpreter (cond ((executable-find "ipython3") "ipython3")
((executable-find "python3") "python3")
t "python"))
;; ipython needs --simple-prompt for emacs compatibility
;; https://emacs.stackexchange.com/a/24572
- (when (equal python-shell-interpreter "ipython")
+ (when (equal python-shell-interpreter "ipython3")
(setq python-shell-interpreter-args "-i --simple-prompt")))
(provide 'init-python)