        (if (f-exists? pyenv-version-path)
            (pyenv-mode-set (s-trim (f-read-text pyenv-version-path 'utf-8))))))))
 
-(add-hook 'projectile-after-switch-project-hook 'projectile-pyenv-mode-set)
-(add-hook 'projectile-after-switch-project-hook 'projectile-pyenv-hook)
+(add-hook 'projectile-after-switch-project-hook 'projectile-pyenv-mode-set-virtualenv)
+(add-hook 'projectile-after-switch-project-hook 'projectile-pyenv-mode-set-version)
 
 
 ;; --------------------------------------------------

(install-package-if-not-exist 'evil)
(require 'evil)
(evil-mode 1)
(define-key evil-normal-state-map (kbd "C-u") 'evil-scroll-up)
(define-key evil-visual-state-map (kbd "C-u") 'evil-scroll-up)
(define-key evil-insert-state-map (kbd "jk") 'evil-normal-state)


;; Better powerline for evil
(install-package-if-not-exist 'powerline-evil)
(require 'powerline-evil)
(powerline-evil-vim-color-theme)

  (define-key company-active-map (kbd "<tab>") 'company-complete-common-or-cycle)
  (define-key company-active-map (kbd "S-TAB") 'company-select-previous)
  (define-key company-active-map (kbd "<backtab>") 'company-select-previous))


;; Emacs incremental and narrowing framework; better than ido-mode
