Created
October 10, 2014 20:52
-
-
Save keelerm84/dea9bc2f88dd13c82047 to your computer and use it in GitHub Desktop.
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
(defadvice delete-file (before purge-from-projectile-cache (filename &optional trash)) | |
(if (and (projectile-project-p) projectile-enable-caching) | |
(let* ((project-root (projectile-project-root)) | |
(true-filename (file-truename filename)) | |
(relative-filename (file-relative-name true-filename project-root))) | |
(if (projectile-file-cached-p relative-filename project-root) | |
(projectile-purge-file-from-cache relative-filename))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment