equal
deleted
inserted
replaced
2743 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2743 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2744 (message "python") |
2744 (message "python") |
2745 |
2745 |
2746 (setq python-indent 4) |
2746 (setq python-indent 4) |
2747 |
2747 |
|
2748 ;; For built-in python.el |
|
2749 (my--eval-after-load python |
|
2750 (defun my-python/send-paragraph () |
|
2751 (interactive) |
|
2752 (save-excursion |
|
2753 (mark-paragraph) |
|
2754 (python-shell-send-region (point) (mark)))) |
|
2755 (define-key python-mode-map [?\C-c ?\C-h] 'my-python/send-paragraph)) |
|
2756 |
|
2757 ;; For 3rd party python-mode.el. |
2748 (my--eval-after-load python-mode |
2758 (my--eval-after-load python-mode |
2749 (when (and (boundp 'py-version) (equal py-version "5.1.0")) |
2759 (when (and (boundp 'py-version) (equal py-version "5.1.0")) |
2750 ;; (py-toggle-shells 'cpython) |
2760 ;; (py-toggle-shells 'cpython) |
2751 (setq-default py-which-shell py-python-command)) |
2761 (setq-default py-which-shell py-python-command)) |
2752 (when (boundp 'py-version) |
2762 (when (boundp 'py-version) |