 (require 'pyenv-mode)
 (pyenv-mode)
 
-(defun projectile-pyenv-mode-set ()
+(defun projectile-pyenv-mode-set-virtualenv ()
   "Set pyenv version matching project name."
   (let ((project (projectile-project-name)))
     (if (member project (pyenv-mode-versions))
         (pyenv-mode-set project)
       (pyenv-mode-unset))))
 
-(defun projectile-pyenv-hook ()
+(defun projectile-pyenv-mode-set-version ()
   "Set pyenv version if .python-version file exists."
   (f-traverse-upwards
    (lambda (path)

       (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)


;; --------------------------------------------------

  (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
