.emacs-my
changeset 1703 003cda885eeb
parent 1702 52368d6da1d4
child 1704 d5d0c845e7ad
equal deleted inserted replaced
1702:52368d6da1d4 1703:003cda885eeb
  3086     (goto-char (point-min))))
  3086     (goto-char (point-min))))
  3087 
  3087 
  3088 (defun my-python/send-paragraph ()
  3088 (defun my-python/send-paragraph ()
  3089   (interactive)
  3089   (interactive)
  3090   (save-excursion
  3090   (save-excursion
  3091     (mark-paragraph)
  3091     (let ( end )
  3092     (python-shell-send-region (point) (mark))))
  3092       (forward-paragraph)
       
  3093       (setq end (point))
       
  3094       (backward-paragraph)
       
  3095       (python-shell-send-region (point) end))))
  3093 
  3096 
  3094 ;; For built-in python.el
  3097 ;; For built-in python.el
  3095 (my--eval-after-load python
  3098 (my--eval-after-load python
  3096   ;; Shadows primitive built-in `python-describe-at-point'.
  3099   ;; Shadows primitive built-in `python-describe-at-point'.
  3097   (define-key python-mode-map "\C-c\C-d" 'my-python/describe-at-point)
  3100   (define-key python-mode-map "\C-c\C-d" 'my-python/describe-at-point)