.emacs-my
changeset 856 7757d0840a78
parent 843 2adc2d3542a4
child 857 05db92f1e97d
equal deleted inserted replaced
855:2df420cd2fcf 856:7757d0840a78
  1945 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1945 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1946 (message "python")
  1946 (message "python")
  1947 
  1947 
  1948 (setq python-indent 4)
  1948 (setq python-indent 4)
  1949 
  1949 
       
  1950 (eval-after-load 'python-mode
       
  1951   (when (equal py-version "5.1.0")
       
  1952     (setq-default py-which-shell py-python-command)
       
  1953     ;; (py-toggle-shells 'cpython)
       
  1954     ))
       
  1955 
  1950 (defun my-python-add-to-path (path)
  1956 (defun my-python-add-to-path (path)
  1951   (interactive (list (read-directory-name "Enter new path for PYTHONPATH: ")))
  1957   (interactive (list (read-directory-name "Enter new path for PYTHONPATH: ")))
  1952   (when (featurep 'cygwin-mount)
  1958   (when (featurep 'cygwin-mount)
  1953     (setq path (my-dos2cygwin-path path))
  1959     (setq path (my-dos2cygwin-path path))
  1954     )
  1960     )