diff -r a0eadfd4cff0 -r a49cca7037ba .emacs-my --- a/.emacs-my Fri Feb 12 23:06:29 2016 +0200 +++ b/.emacs-my Sat Feb 13 00:01:46 2016 +0200 @@ -2745,6 +2745,16 @@ (setq python-indent 4) +;; For built-in python.el +(my--eval-after-load python + (defun my-python/send-paragraph () + (interactive) + (save-excursion + (mark-paragraph) + (python-shell-send-region (point) (mark)))) + (define-key python-mode-map [?\C-c ?\C-h] 'my-python/send-paragraph)) + +;; For 3rd party python-mode.el. (my--eval-after-load python-mode (when (and (boundp 'py-version) (equal py-version "5.1.0")) ;; (py-toggle-shells 'cpython)