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

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