7

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?

1 Answer 1

7

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.

3
  • sort of old, but maybe you mean't file-remote-p ?
    – joefromct
    Jul 16, 2019 at 3:46
  • 1
    @joefromct: Yes; updated. Thx.
    – Drew
    Jul 16, 2019 at 15:26
  • I am facing the exact same issue: remote files are removed from the recentf list of my local emacs after a shut-down of the remote server. I would like for them to keep around. What exactly do I have to specify here and where do I have to do that?
    – CD86
    Jun 20 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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