mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Disable projectile cache during elfeed-db-compact
This commit is contained in:
@ -61,7 +61,10 @@
|
|||||||
(defun +rss|cleanup ()
|
(defun +rss|cleanup ()
|
||||||
"Clean up after an elfeed session. Kills all elfeed and elfeed-org files."
|
"Clean up after an elfeed session. Kills all elfeed and elfeed-org files."
|
||||||
(interactive)
|
(interactive)
|
||||||
(elfeed-db-compact)
|
;; `delete-file-projectile-remove-from-cache' slows down `elfeed-db-compact'
|
||||||
|
;; tremendously, so we disable the projectile cache:
|
||||||
|
(let (projectile-enable-caching)
|
||||||
|
(elfeed-db-compact))
|
||||||
(let ((buf (previous-buffer)))
|
(let ((buf (previous-buffer)))
|
||||||
(when (or (null buf) (not (doom-real-buffer-p buf)))
|
(when (or (null buf) (not (doom-real-buffer-p buf)))
|
||||||
(switch-to-buffer (doom-fallback-buffer))))
|
(switch-to-buffer (doom-fallback-buffer))))
|
||||||
|
Reference in New Issue
Block a user