diff options
author | Kyle Meyer <kyle@kyleam.com> | 2013-12-09 15:22:03 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2013-12-09 15:22:03 -0500 |
commit | bce2e0a12780e12ad788f14c397795b164c840ce (patch) | |
tree | 3cea4637e287bc33e59a901ae5a30e65744d759b /init | |
parent | 4f4f26ea3fb4a0d89e17d58512eb3d53e5c63520 (diff) | |
download | emacs.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.el | 2 |
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"))))) |