From dd07dc8d1fcca60a79a14f5591257121fa40b311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Mon, 9 Dec 2019 10:37:12 +0100 Subject: [PATCH] [emacs] Update init.el for python. --- .emacs.d/init.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3e1dca8..443c7b2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -316,11 +316,15 @@ :ensure t :config (when (load "flycheck" t t) + (require 'flycheck-mypy) + (flycheck-add-next-checker 'python-flake8 'python-mypy) (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) (add-hook 'elpy-mode-hook 'flycheck-mode)) - (setq python-shell-interpreter "jupyter" - python-shell-interpreter-args "console --simple-prompt" - python-shell-prompt-detect-failure-warning nil) + (setq python-shell-interpreter "ipython" + python-shell-interpreter-args "-i --simple-prompt") + ;; (setq python-shell-interpreter "jupyter" + ;; python-shell-interpreter-args "console --simple-prompt" + ;; python-shell-prompt-detect-failure-warning nil) (add-to-list 'python-shell-completion-native-disabled-interpreters "jupyter") :init