From 1d0f4ca424e1eb61b3042d608fb461d6850f0a48 Mon Sep 17 00:00:00 2001 From: Ethan Leba Date: Sat, 18 Dec 2021 10:39:14 -0500 Subject: [PATCH] tweak(python): use `python-shell` repl handlers Fix: #4375 --- modules/lang/python/config.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index a5c955e83..31f40c12f 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -26,7 +26,10 @@ (when (executable-find "Microsoft.Python.LanguageServer") (set-eglot-client! 'python-mode '("Microsoft.Python.LanguageServer")))) :config - (set-repl-handler! 'python-mode #'+python/open-repl :persist t) + (set-repl-handler! 'python-mode #'+python/open-repl + :persist t + :send-region #'python-shell-send-region + :send-buffer #'python-shell-send-buffer) (set-docsets! '(python-mode inferior-python-mode) "Python 3" "NumPy" "SciPy" "Pandas") (set-ligatures! 'python-mode