From 0ced3370f3a818c3198b7d2ed6aee37a63f998be Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 6 Apr 2020 11:58:29 -0400 Subject: [PATCH] Add quit-window binding in pytest buffers --- emacs/init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.org b/emacs/init.org index c11b562..a9f670a 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2904,7 +2904,8 @@ And support pyenv (NOT pyvenv) to change Python versions: python-pytest--current-defun) :general (python-mode-map "C-c t p" #'python-pytest-popup) - ((normal motion visual) python-pytest-mode-map "g r" #'python-pytest-repeat)) + ((normal motion visual) python-pytest-mode-map "g r" #'python-pytest-repeat) + ((normal motion visual) python-pytest-mode-map "q" #'quit-window)) #+END_SRC And borrowing some functions from python-pytest, we can get some nosetests support as well: