From 025f5f02180a80f7f36494f8a670755425f8eb32 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 19 Jul 2013 18:51:37 -0400 Subject: add py.test compiling keybindings --- init/km-python.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'init') diff --git a/init/km-python.el b/init/km-python.el index 2463ee5..d0ce6bc 100644 --- a/init/km-python.el +++ b/init/km-python.el @@ -11,3 +11,13 @@ "';'.join(module_completion('''%s'''))\n" python-shell-completion-string-code "';'.join(get_ipython().Completer.all_completions('''%s'''))\n")) + +(defun km/python-hook () + (local-set-key (kbd "C-c m t") '(lambda () + (interactive) + (compile "py.test"))) + (local-set-key (kbd "C-c m T") '(lambda () + (interactive) + (compile "py.test2")))) + +(add-hook 'python-mode-hook 'km/python-hook) -- cgit v1.2.3