summaryrefslogtreecommitdiff
path: root/lisp/init-python.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-07-23 22:13:52 -0400
committerKyle Meyer <kyle@kyleam.com>2014-07-23 22:13:52 -0400
commit5e3270126256a9461302bb12c24aca54a0ff5f23 (patch)
tree08d92bfd00be74680630f71bf50e018e2a4e0825 /lisp/init-python.el
parent2fe9e0a7d827fe21b3bc222073d21f9e90e6d370 (diff)
downloademacs.d-5e3270126256a9461302bb12c24aca54a0ff5f23.tar.gz
Change method for binding mode-specific prefix
Diffstat (limited to 'lisp/init-python.el')
-rw-r--r--lisp/init-python.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/init-python.el b/lisp/init-python.el
index decc081..c020b08 100644
--- a/lisp/init-python.el
+++ b/lisp/init-python.el
@@ -80,7 +80,12 @@ This is inspired by `ess-eval-function-or-paragraph-and-step'."
(goto-char pos)
n))
+(define-prefix-command 'km/python-prefix-map)
+(define-key km/python-prefix-map "t" 'km/find-python-test-file-other-window)
+
(after 'python
+ (define-key python-mode-map (kbd "C-c m") 'km/python-prefix-map)
+
;; Rebind `python-shell-send-buffer'.
(define-key python-mode-map (kbd "C-c C-c")
'km/python-shell-send-function-or-paragraph-and-step)
@@ -91,7 +96,6 @@ This is inspired by `ess-eval-function-or-paragraph-and-step'."
(define-key python-mode-map (kbd "C-M-x") 'python-eldoc-at-point))
(defun km/python-hook ()
- (local-set-key (kbd "C-c m t") 'km/find-python-test-file-other-window)
(set (make-local-variable 'compile-command) "py.test"))
(add-hook 'python-mode-hook 'km/python-hook)