home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b32f13a248d6428acef8b7be49b95f2c2f75708b
parent 23476e99937592da289678052f0e6d9c5ef0c3dc
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri,  3 Apr 2020 09:21:26 +0200

setup-projectile.el: lazy load projectile

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/setup-projectile.el | 32+++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)

diff --git a/tools/emacs/config/setup-projectile.el b/tools/emacs/config/setup-projectile.el @@ -1,8 +1,33 @@ ;;; -*- lexical-binding: t; -*- -(use-package projectile ; Project management - :init (projectile-mode) +(use-package projectile + :defer t + :commands + (projectile-ack + projectile-ag + projectile-compile-project + projectile-dired + projectile-find-dir + projectile-find-file + projectile-find-tag + projectile-test-project + projectile-grep + projectile-invalidate-cache + projectile-kill-buffers + projectile-multi-occur + projectile-project-p + projectile-project-root + projectile-recentf + projectile-regenerate-tags + projectile-replace + projectile-replace-regexp + projectile-run-async-shell-command-in-root + projectile-run-shell-command-in-root + projectile-switch-project + projectile-switch-to-buffer + projectile-vc) :bind-keymap ("C-c p" . projectile-command-map) :config + (projectile-mode) ;; Remove dead projects when Emacs is idle (run-with-idle-timer 10 nil #'projectile-cleanup-known-projects) (setq @@ -21,9 +46,10 @@ (projectile-compile-project nil))) (use-package counsel-projectile ; Ivy integration for Projectile + :commands (counsel-projectile-switch-project) :bind (:map projectile-command-map ("p" . counsel-projectile-switch-project) ("r" . counsel-projectile-rg)) - :init (counsel-projectile-mode)) + :config (counsel-projectile-mode)) (provide 'setup-projectile)