diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-03-20 18:06:39 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-03-20 18:14:40 +0100 |
commit | d301b09bc7f8433a4d42ea89ff10dca440f5794e (patch) | |
tree | 3d037e6bc3989e29ec4f0c2f5e631fc39f8db29f /lisp/init-python.el | |
parent | 65fbb9ed9ace04b5bc912cc00cc8b5f190ef610d (diff) |
python: remove unused interpreter customization
Diffstat (limited to 'lisp/init-python.el')
-rw-r--r-- | lisp/init-python.el | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el index ffcaa2c..278be3e 100644 --- a/lisp/init-python.el +++ b/lisp/init-python.el @@ -15,16 +15,7 @@ (use-package python :mode ("\\.py\\'" . python-mode) - :hook (python-mode . mpolden/python-mode-buffer-local-variables) - :config - ;; set prefered interpreter - (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 "ipython3") - (setq python-shell-interpreter-args "-i --simple-prompt"))) + :hook (python-mode . mpolden/python-mode-buffer-local-variables)) (provide 'init-python) |