aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-projectile.el
blob: 4169387dd673625244f7dbdc0014c1be73770f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(when (gx/maybe-require-package 'projectile)
  (add-hook 'after-init-hook #'projectile-mode))

(with-eval-after-load 'projectile
  (gx/diminish 'projectile-mode))

(setq projectile-cache-file (expand-file-name ".cache/projectile" user-emacs-directory)
      projectile-require-project-root nil)

(with-eval-after-load 'evil
  (evil-define-key 'normal projectile-mode-map
    (kbd "<leader>fp") 'projectile-switch-project))

(provide 'init-projectile)