From f353c765cfe8e183fdd3509a953596724a5db3bf Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 22 Jun 2014 22:33:36 -0400 Subject: Rebind Python-shell-send-defun --- lisp/init-python.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/init-python.el b/lisp/init-python.el index 5c39e2f..04b91d0 100644 --- a/lisp/init-python.el +++ b/lisp/init-python.el @@ -32,6 +32,11 @@ If ARG, use pytest2 instead of pytest." (let ((pytest (if arg "py.test2" "py.test"))) (compile pytest))) +(after 'python + ;; Swap `python-shell-send-defun' and `python-eldoc-at-point'. + (define-key python-mode-map (kbd "C-c C-f") 'python-shell-send-defun) + (define-key python-mode-map (kbd "C-M-x") 'python-shell-send-defun)) + (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)) -- cgit v1.2.3