I want to quickly access recently visited files with ivy/counsel. In my init.el
I have:
(use-package counsel
:bind (("M-x" . counsel-M-x)
("C-x b" . counsel-switch-buffer)
("C-x C-f" . counsel-find-file)
:map minibuffer-local-map
("C-r" . counsel-minibuffer-history)))
When I start Emacs and hit C-x
C-f
C-r
I see a list of files I visited ... but from weeks ago. When I visit a file not in this list and check afterwards, it shows up there. But if I kill Emacs and restart it, I always end up with the "original" list, meaning my actions during the last sessions are forgotten.
Comming from here I also made sure I have
(savehist-mode 1)
but to no effect.
What am I missing? I am pretty sure it was working a while ago. I suppose some changes to my init-file are responsible. I checked carefully but found nothing. Any ideas what to look out for?
savehist-additional-variables
.savehist-additional-variables
state, I don't have to add minibuffer history variables. Nevertheless I tried (withcounsel-minibuffer-history
andfile-name-history
). But the problem persists.