Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun python-shell-send-region-or-line nil
- "Sends from python-mode buffer to a python shell, intelligently."
- (interactive)
- (cond ((region-active-p)
- (setq deactivate-mark t)
- (python-shell-send-region (region-beginning) (region-end))
- (python-nav-forward-statement)
- ) (t (elpy-shell-send-current-statement))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement