From 5e3270126256a9461302bb12c24aca54a0ff5f23 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 23 Jul 2014 22:13:52 -0400 Subject: Change method for binding mode-specific prefix --- lisp/init-python.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/init-python.el') 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) -- cgit v1.2.3