.emacs-my
changeset 1338 a49cca7037ba
parent 1337 a0eadfd4cff0
child 1339 d276e7a0d704
--- 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)