mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
Remove dash/f dependencies; use cl-lib & subr-x more
This commit is contained in:
@@ -33,8 +33,10 @@
|
||||
projectile-other-file-alist))
|
||||
|
||||
(defun doom*projectile-cache-current-file (orig-fun &rest args)
|
||||
"Don't cache ignored files."
|
||||
(unless (--any (f-descendant-of? buffer-file-name it)
|
||||
"Don't cache ignored files."
|
||||
(unless (cl-some (lambda (path)
|
||||
(string-prefix-p buffer-file-name
|
||||
(expand-file-name path)))
|
||||
(projectile-ignored-directories))
|
||||
(apply orig-fun args)))
|
||||
(advice-add 'projectile-cache-current-file :around 'doom*projectile-cache-current-file))
|
||||
|
Reference in New Issue
Block a user