I like using recentf
mode in Emacs which produces a list of files I have recently opened. This list is persistent between sessions, so I can get to files I used a fairly long time ago.
However, I recently started using Emacsclient to connect to an Emacs server which is automatically turned on when I log it. Overall, this was a big improvement. However, recentf
mode started missing most of the files I opened whenever I restarted my computer. It remembers some of them, and I cannot see a pattern in which files get recorded.
How can I fix this behavior? How can I get it to record all the files I visit and remember them between sessions?
emacs -nw
, loading server and recentf, then runningrecentf-mode 1
andserver-start
in that order and was not able to reproduce your problem. Can you post your .emacs file somewhere (such as a pastebin) along with an example of how you're starting emacs and emacsclient?emacsclient -c --alternate-editor="" %f
. The problem might be with my not closing Emacs before turning my computer off, but I'm not sure. Manually killing Emacs before shutting off seems to help, but that's not a great solution.