merge: pull request #5908 from ethan-leba/repl-handler

Add :send-region and :send-buffer options to `set-repl-handler!`
This commit is contained in:
Henrik Lissner 2022-01-03 18:12:31 +01:00 committed by GitHub
commit b88eb77605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 5 deletions

View file

@ -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