diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-06-22 22:33:36 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-06-22 22:33:36 -0400 |
commit | f353c765cfe8e183fdd3509a953596724a5db3bf (patch) | |
tree | eae8f663e97c70dbdbc9fbf8d9d930a854c69c1e /lisp | |
parent | dbafbc909088e594a3420bd8e0532239de9b4e88 (diff) | |
download | emacs.d-f353c765cfe8e183fdd3509a953596724a5db3bf.tar.gz |
Rebind Python-shell-send-defun
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-python.el | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |