1. Antonio Cuni
  2. pytest-emacs
  3. Issues
Issue #1 new

Use compilation-mode

Floris Bruynooghe
created an issue

It would be great if the *pytest* buffer switched to compilation mode after py.test finished. This allows one to easily jump from lines showing exceptions to the actual code. Enabling this is as simple as:

diff --git a/pytest.el b/pytest.el
--- a/pytest.el
+++ b/pytest.el
@@ -64,6 +64,7 @@
   (when (memq (process-status proc) '(signal exit))
       (set-buffer "*pytest*")
+      (compilation-mode)
       (setq buffer-read-only t)
       (local-set-key "q" 'quit-window)
       (local-set-key "g" 'pytest-run-again))))

Comments (0)

  1. Log in to comment