Emacs: projectile: Don't turn caching on 2 times.

This commit is contained in:
tastytea 2020-12-24 01:30:44 +01:00
parent 55de2e863f
commit 2cd63f065b

View File

@ -88,11 +88,7 @@ Ignores ARGS."
:before #'my/projectile-enable-caching?)
(defun my/switch-project ()
"Find file in project, add project to `treemacs' and
collapse other projects."
; Enable caching maybe before listing files.
(my/projectile-enable-caching?)
"Find file in project, add project to `treemacs' and collapse other projects."
(if (member 'counsel-projectile-mode minor-mode-list)
(counsel-projectile-find-file)
(projectile-find-file))