5

When using recentf with tramp, recentf would clean up its file list including all remote files, which takes a lot of time when the Internet is bad. How can I ask recentf to not cleanup remote files, without disabling recent file list auto cleanup for local files?

4

M-x customize-option RET recentf-keep RET, and be sure to read its description.

You can use any arbitrary or conditional expression. And that includes file-remote-p.

2
  • sort of old, but maybe you mean't file-remote-p ? – joefromct Jul 16 '19 at 3:46
  • 1
    @joefromct: Yes; updated. Thx. – Drew Jul 16 '19 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.