summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-07-05 23:43:20 -0400
committerKyle Meyer <kyle@kyleam.com>2014-07-05 23:43:20 -0400
commitd1920df035d9a65b4f978de041c9709ff8fd3163 (patch)
treeb84acf8bca435198ee2beeb69d77c9b47f0e2b8a /lisp
parent98293de9eead498a9145fb2d9ae50e7696af601d (diff)
downloademacs.d-d1920df035d9a65b4f978de041c9709ff8fd3163.tar.gz
Set Python buffer compile command to py.test
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-python.el9
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el
index 69f0dd6..0049b34 100644
--- a/lisp/init-python.el
+++ b/lisp/init-python.el
@@ -25,13 +25,6 @@ file. Unless a ARG is non-nil, py.test is also imported."
(unless arg
(insert "import pytest\n")))))
-(defun km/pytest-compile (arg)
- "Run pytest.
-If ARG, use pytest2 instead of pytest."
- (interactive "P")
- (let ((pytest (if arg "py.test2" "py.test")))
- (compile pytest)))
-
(defun km/python-shell-send-function-or-paragraph-and-step ()
"Send function or paragraph to Python shell.
@@ -99,7 +92,7 @@ This is inspired by `ess-eval-function-or-paragraph-and-step'."
(defun km/python-hook ()
(local-set-key (kbd "C-c m t") 'km/find-python-test-file-other-window)
- (local-set-key (kbd "C-c m c") 'km/pytest-compile))
+ (set (make-local-variable 'compile-command) "py.test"))
(add-hook 'python-mode-hook 'km/python-hook)