Created
January 18, 2022 21:42
-
-
Save tommorris/bd602cdadfbe56a4cd0d2f335ed69e50 to your computer and use it in GitHub Desktop.
use filenotify to invalidate projectile cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'filenotify) | |
(after! projectile | |
(dolist (proj-dir projectile-known-projects) | |
(file-notify-add-watch proj-dir '(change) #'projectile-maybe-invalidate-cache))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment