We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48a930 commit 57d5155Copy full SHA for 57d5155
modules/config-desktop.el
@@ -316,10 +316,17 @@ where it was when you previously visited the same file."
316
(dolist (hook recentf-used-hooks) (apply #'add-hook hook))))
317
318
:config
319
+ (defun quark/recentf-keep-predicate (file)
320
+ (cond
321
+ ((file-remote-p file nil t) (file-readable-p file))
322
+ ((file-remote-p file) t)
323
+ ((file-readable-p file))))
324
+
325
(setq recentf-save-file (locate-user-emacs-file "data/recentf")
326
recentf-max-saved-items 1000
327
recentf-max-menu-items 50
- recentf-auto-cleanup 30)
328
+ recentf-auto-cleanup 30
329
+ recentd-keep '(quark/recentf-keep-predicate))
330
(add-to-list 'recentf-exclude (eval-when-compile
331
(concat (rx line-start)
332
(expand-file-name
0 commit comments