   :ensure t
   :diminish projectile-mode
   :init
-  (projectile-global-mode))
+  (projectile-mode))
 
 (use-package py-autopep8
   :ensure t
   :defer t
   :init
-  (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save))
+  (add-hook 'python-mode-hook 'py-autopep8-enable-on-save))
 
 (use-package smart-mode-line
+  :ensure t)
+
+(use-package smart-mode-line-powerline-theme
   :ensure t)
 
 (use-package smart-mode-powerline-theme


(use-package flycheck
  :ensure t
  :defer t
  :init
  (when (require 'flycheck nil t)
  (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
  (add-hook 'elpy-mode-hook 'flycheck-mode)))

(use-package ido
  :ensure t

(use-package jedi
  :ensure t
  :defer t
  :init
  (add-hook 'python-mode-hook 'jedi:setup)
  (setq jedi:complete-on-dot t)
  (setq jedi:use-shortcuts t))
