From bce2e0a12780e12ad788f14c397795b164c840ce Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 9 Dec 2013 15:22:03 -0500 Subject: Create python test file in another window Helpful to have the test file and original file side-by-side --- init/km-python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init') diff --git a/init/km-python.el b/init/km-python.el index ade857d..57f6ff4 100644 --- a/init/km-python.el +++ b/init/km-python.el @@ -21,7 +21,7 @@ Unless a prefix argument ARG is given, py.test is also imported." (test-file (concat "test_" py-file))) (when (file-exists-p test-file) (error "Test file %s already exists." test-file)) - (with-current-buffer (find-file test-file) + (with-current-buffer (find-file-other-window test-file) (insert (format "import %s\n" (file-name-sans-extension py-file))) (unless arg (insert "import pytest\n"))))) -- cgit v1.2.3