summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2013-12-09 15:22:03 -0500
committerKyle Meyer <kyle@kyleam.com>2013-12-09 15:22:03 -0500
commitbce2e0a12780e12ad788f14c397795b164c840ce (patch)
tree3cea4637e287bc33e59a901ae5a30e65744d759b /init
parent4f4f26ea3fb4a0d89e17d58512eb3d53e5c63520 (diff)
downloademacs.d-bce2e0a12780e12ad788f14c397795b164c840ce.tar.gz
Create python test file in another window
Helpful to have the test file and original file side-by-side
Diffstat (limited to 'init')
-rw-r--r--init/km-python.el2
1 files changed, 1 insertions, 1 deletions
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")))))