This is the scenario:
- Switch to a new git branch
- Open some "new files" in that branch
- Switch back to an older branch that doesn't have these "new files"
- I want these opened buffers for these not any more existent files purged
How to do that?
I tried (recentf-cleanup)
but that didn't work.
recentf
, but I could be wrong.recentf
just keeps track of files you've accessed recently with Emacs. And its cleanup just cleans up its list of those files. It has nothing to do with GIT, as far as I know. Also, deleting buffers that visit files has no effect on the files. – Drew Mar 29 at 19:25