            ("C-c <SPC>" . helm-all-mark-rings)
            ("C-c C-r" . helm-resume))
 
-(require 'project)
-(bind-key "C-x C-p" 'project-find-file)
+(require 'projectile)
+(setq projectile-enable-caching t
+      projectile-completion-system 'helm)
+(projectile-global-mode)
+(bind-key "C-x C-p" 'projectile-find-file)
 
 (require 'grep)
 (add-to-list 'grep-find-ignored-files ".DS_Store")

                     json-mode
                     haskell-mode
                     restart-emacs
                     helm
                     helm-xref
                     ;; helm-dired-history
                     ;; helm-projectile
                     helm-org-rifle
                     super-save
                     avy

(bind-key "M-g" '(lambda ()
                   (interactive)
                   (save-some-buffers t nil)
                   (helm-grep-ag (projectile-project-root) current-prefix-arg)))

(bind-key* "M-G" '(lambda ()
                    (interactive)
