Skip to content

Instantly share code, notes, and snippets.

@tommorris
Created January 18, 2022 21:42
Show Gist options
  • Save tommorris/bd602cdadfbe56a4cd0d2f335ed69e50 to your computer and use it in GitHub Desktop.
Save tommorris/bd602cdadfbe56a4cd0d2f335ed69e50 to your computer and use it in GitHub Desktop.
use filenotify to invalidate projectile cache
(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