(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'doctest-mode "doctest-mode" "Python doctest editing mode." t)

(setq auto-mode-alist
      (append '(("\\.py$" . python-mode)
		("SConstruct$" . python-mode)
		("SConscript$" . python-mode))
              auto-mode-alist))

(setq interpreter-mode-alist
      (cons '("python" . python-mode) interpreter-mode-alist))


;;----------------------------------------------------------------------------
;; Pymacs and Rope for Python
;;----------------------------------------------------------------------------
;; See http://edward.oconnor.cx/2008/02/ropemacs
(setq pymacs-load-path
      (list (concat el-get-dir "ropemacs")))
(add-hook 'python-mode-hook
          (lambda ()
            (require 'pymacs)
            (pymacs-load "ropemacs" "rope-")))


;;----------------------------------------------------------------------------
;; On-the-fly syntax checking via flymake
;;----------------------------------------------------------------------------
(setq flymake-python-pyflakes-executable "pyflakes-2.6")
(require 'flymake-python)

(add-hook 'python-mode-hook 'flymake-python-load)



(provide 'init-python-mode)

(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'doctest-mode "doctest-mode" "Python doctest editing mode." t)

(setq auto-mode-alist
      (append '(("\\.py$" . python-mode)
		("SConstruct$" . python-mode)
		("SConscript$" . python-mode))
              auto-mode-alist))

(setq interpreter-mode-alist
      (cons '("python" . python-mode) interpreter-mode-alist))


;;----------------------------------------------------------------------------
;; Pymacs and Rope for Python
;;----------------------------------------------------------------------------
;; See http://edward.oconnor.cx/2008/02/ropemacs
(setq pymacs-load-path
      (list (concat el-get-dir "ropemacs")))
(add-hook 'python-mode-hook
          (lambda ()
            (require 'pymacs)
            (pymacs-load "ropemacs" "rope-")))


;;----------------------------------------------------------------------------
;; On-the-fly syntax checking via flymake
;;----------------------------------------------------------------------------
(require 'flymake-python)

(add-hook 'python-mode-hook 'flymake-python-load)



(provide 'init-python-mode)

Remove overridden executable name for pyflakes
Remove overridden executable name for pyflakes

cjqw/emacs.d,zuoshifan/emacs.d,jachinpy/emacs.d,ruiyang/emacs.d,mmqmzk/emacs.d,modkzs/emcs.d,fengxl/emacs.d,haodaivshen/emacs.d,farzadbekran/emacs.d,krzysz00/emacs.d,Enzo-Liu/emacs.d,hkcqr/emacs.d,scorpionis/emacs.d,Guoozz/emacs.d,svenyurgensson/emacs.d,zuoshifan/emacs.d,YangXin/emacs.d,qinshulei/emacs.d,baohaojun/emacs.d,caoyuanqi/emacs.d,pairyo/emacs.d,LittleLmp/emacs.d,blueabysm/emacs.d,farzadbekran/emacs.d,wenpincui/emacs.d,zuoshifan/emacs.d,roxolan/emacs.d,bibaijin/emacs.d,benkha/emacs.d,qianwan/emacs.d,shafayetkhan/emacs.d,jthetzel/emacs.d,zuoshifan/emacs.d,danfengcao/emacs.d,braveoyster/emacs.d,zhuoyikang/emacs.d,hophacker/emacs.d,emuio/emacs.d,kongfy/emacs.d,jachinpy/emacs.d,whizzzkid/emacs.d,LKI/emacs.d,alant/emacs.d,lujianmei/emacs.d,wegatron/emacs.d,boblannon/emacs.d,zuoshifan/emacs.d,zuoshifan/emacs.d,farzadbekran/emacs.d,ruiyang/emacs.d,zuoshifan/emacs.d,Togal/emacs.d,dongdonghu/.emacs.d,kindoblue/emacs.d,jhpx/emacs.d,gsmlg/emacs.d,exclamaforte/emacs.d,ernest-dzf/emacs.d,farzadbekran/emacs.d,zuoshifan/emacs.d,Jadecity/PurcellEmacs.d,DarkThrone/emacs.d,blueseason/emacs.d,jkaessens/emacs.d,zhaotai/.emacs.d,arthurl/emacs.d,carlosliu/emacs.d,atreeyang/emacs.d,ilove0518/emacs.d,zenith-john/emacs.d,Shanicky/emacs.d,dhanunjaya/emacs.d,renatoriccio/emacs.d,YangXin/emacs.d,cyjia/emacs.d,zuoshifan/emacs.d,lromang/emacs.d,mpwang/emacs.d,sgarciac/emacs.d,Werewolflsp/emacs.d,46do14/emacs.d,lust4life/emacs.d,dcorking/emacs.d,me020523/emacs.d,farzadbekran/emacs.d,purcell/emacs.d