Is this recentf-mode supposed to work for files opened with sudo? I only find files that are opened normally in the list.

I open files with sudo like C-x C-f /sudo://

1 Answer 1


Yes it should. Make sure you don't have "sudo" in the variable recentf-exclude (C-h v recentf-exclude).

  • Hmm, it seems they are read only when I reopen them from this list? Oct 6, 2022 at 10:16
  • they always open read only, when I pick them from this list. Any ideas? This is not happening with you? Oct 10, 2022 at 3:09
  • 1
    i explicitly exclude "tramp-ish" file paths from recentf
    – nega
    Oct 10, 2022 at 20:36

Your Answer

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

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