.emacs-my
changeset 1337 a0eadfd4cff0
parent 1336 7c93663d44f3
child 1338 a49cca7037ba
equal deleted inserted replaced
1336:7c93663d44f3 1337:a0eadfd4cff0
  2745 
  2745 
  2746 (setq python-indent 4)
  2746 (setq python-indent 4)
  2747 
  2747 
  2748 (my--eval-after-load python-mode
  2748 (my--eval-after-load python-mode
  2749   (when (and (boundp 'py-version) (equal py-version "5.1.0"))
  2749   (when (and (boundp 'py-version) (equal py-version "5.1.0"))
  2750     (setq-default py-which-shell py-python-command)
       
  2751     ;; (py-toggle-shells 'cpython)
  2750     ;; (py-toggle-shells 'cpython)
  2752     ))
  2751     (setq-default py-which-shell py-python-command))
       
  2752   (when (boundp 'py-version)
       
  2753     (define-key python-mode-map [C-backspace] 'backward-kill-word)
       
  2754     (define-key python-mode-map [?\C-c ?p] 'py-execute-paragraph)
       
  2755     (define-key python-mode-map [?\C-c ?r] 'py-execute-region)))
  2753 
  2756 
  2754 (my--eval-after-load python
  2757 (my--eval-after-load python
  2755   (define-key inferior-python-mode-map "\C-c\C-f" 'python-describe-symbol))
  2758   (define-key inferior-python-mode-map "\C-c\C-f" 'python-describe-symbol))
  2756 
  2759 
  2757 ;; Enable "M-/", "C-c g", "C-c d", "C-c f" shortcuts.
  2760 ;; Enable "M-/", "C-c g", "C-c d", "C-c f" shortcuts.