Questions tagged [recentf]

`recentf-mode` is a mode that enables the "Open Recent" submenu, giving you quick access to files used recently, including in previous Emacs sessions. It can also be used without GUI by using the `recentf-open-files` command.

Filter by
Sorted by
Tagged with
1 vote
0 answers
45 views

Why is the encoding for recentfile save file set to utf-8 rather than plain text?

This is from recentf.el in Emacs 26.3: (defconst recentf-save-file-coding-system (if (coding-system-p 'utf-8-emacs) 'utf-8-emacs 'emacs-mule) "Coding system of ...
user avatar
  • 143
0 votes
0 answers
26 views

How can I get recentf to record files opened using the command line?

Recentf works well for me when I open the files in Emacs. But when I open a file with Emacs using the command line (emacs myfile) it is not remembered by recentf. How can I make recentf record such ...
user avatar
  • 569
0 votes
1 answer
100 views

init-open-recentf with use-package

I want to use use-package for nearly everything in my init.el. I have set up recentf. And to make the recent-file buffer pop up when Emacs starts I also included the init-open-recentf package. But I ...
user avatar
  • 569
0 votes
1 answer
16 views

How to show recent directories on separate lines in echo area?

Linux Mint 20, Emacs 27.2 Install package dired, dired+ I want to show recent directories visited in the minibuffer. Something like this: I tried this: (defun my-recent-dir () (interactive) ...
user avatar
  • 3,445
0 votes
1 answer
40 views

How to see all recent directories?

Linux Mint 20 Emacs 27 package: dired, diredp (https://www.emacswiki.org/emacs/dired%2b.el) Jump to bookmark. Input Temp Press ENTER. As result open folder MyFolder Press ENTER. As result open ...
user avatar
  • 3,445
1 vote
1 answer
46 views

dired-recent - not show correct recent visited directories

Linux Mint 20 Emacs 27 dired, dired-recent Steps: 1. "recentf-mode" is turn on 2. Go to directory "Download". Use "Jump to bookmark" (C-x r b). Input "Download"...
user avatar
  • 3,445
3 votes
1 answer
72 views

How to suppress `Wrote /home/user/.emacs.d/recentf` message in minibuffer

In the minibuffer I keep seeing: Wrote /home/user/.emacs.d/recentf Would it be possible to suppress this message? (Only for file name recentf file) my minimal.el: (setq recentf-max-saved-items 50) (...
user avatar
  • 1,056
0 votes
1 answer
43 views

Never delete recentf entries

I have all my files in recentf, weeks of file visiting history ; But recently, entries have been randomly disappearing ; This is disrupting my workflow in a big, bad way. Questions: How can I make ...
user avatar
  • 831
0 votes
1 answer
55 views

Hiding certain directories in the recentf list [duplicate]

After every OCaml programming session, my recentf list is polluted with directories such as /private/var/folders/jn/l00kvy6n15s3slnk5khz1gh00000gn/T/ocamlformatbldUeV.ml /private/var/folders/jn/...
user avatar
0 votes
0 answers
48 views

How do I disable recentf-cleanup on exit?

How do I disable recentf-cleanup on exit? Setting (setq recentf-auto-cleanup 'never) is not enough.
user avatar
  • 620
2 votes
2 answers
94 views

Open recent directories like Ido opens files

When I want to open a recent file, I use ido-find-find (C-x C-f) or ido-switch-buffer (C-x b) and type a few characters and Ido automatically finds the right file among the recent files I have visited....
user avatar
  • 191
2 votes
1 answer
281 views

How to stop ivy-switch-buffer from trying to connect

I'm using ivy-use-virtual-buffers to see both currently and recently visited buffers in Swiper's ivy-switch-buffer and it worked great until last month when I opened distant files via ssh/Tramp. Ever ...
user avatar
  • 831
0 votes
1 answer
89 views

Remove zombie buffers from recentf

I want to get rid of invalid recentf entries, that is buffers that no longer exist on disk, because I renamed or just plain deleted them ; I just did a M-x recentf-cleanup and apparently lost all my ...
user avatar
  • 831
2 votes
1 answer
125 views

Recent files by project rather than recent files and recent projects separately

Note: This question is really about Projectile and Recentf. I'm using them in the context of Spacemacs, so I describe that context, but the question isn't really intended to be Spacemacs-specific. The ...
user avatar
2 votes
1 answer
236 views

How emacsclient automatically startup with the most recent file?

With the help of recentf I am able to open recently open files from its buffer list. As an example when I execute icicle-buffer, I can see the buffer list. I was wondering can I do this operation ...
user avatar
  • 1,056
1 vote
0 answers
97 views

Ignoring specific files in recentf-mode by their exact filenames

I am having trouble to Ignoring specific files in recentf-mode. (add-to-list 'recentf-exclude "company-statistics-cache.el") On my end, I want to ignore them by their exact file names instead of ...
user avatar
  • 1,056
0 votes
1 answer
805 views

An ivy function for recently opened files?

I know that setting ivy-use-virtual-buffers leads to recently opened files being shown in the ivy-switch-buffer completion. However, I don't want this. What I want is a separate function for opening ...
user avatar
  • 93
0 votes
0 answers
85 views

Why aren't recently visited files at the front of the list for `ido-switch-buffer`?

I don't understand why, no matter what, scratch, Messages, Compile-Log etc are always the buffers that show up first. I use now this little function (defun ido-recentf-open () "Use `ido-completing-...
user avatar
  • 439
2 votes
1 answer
156 views

Why does ido, when used with recentf, show candidates in the order it does?

Wanting to stay simple as possible I refrain from using Helm or Ivy etc. and use IDO. Ido-switch-buffer is supposed to allow me to access recently opened buffers quite efficiently with the help of ...
user avatar
  • 439
4 votes
2 answers
1k views

How to open all the opened files from a previous session?

Whenever I open my spacemacs I see the recentf buffer which lists 5 files I had open in my previous session. There is only an option to open them one by one, and only five of them, because others are ...
user avatar
1 vote
0 answers
31 views

Add recent files to .viminfo

Is there a package or code snippet that can make Emacs add recent files to .viminfo? I want this to use with v. (Basically to open recent files using fzf) I’m using Spacemacs (so evil, too), if that ...
user avatar
  • 620
1 vote
2 answers
63 views

How can I get the list of recentf files from bash / cli?

How can I retrieve the list of recent files in bash? I'd like to get this set of files so I can use it with rofi. I could manually parse the data file that looks something like: ;;; Automatically ...
user avatar
2 votes
1 answer
144 views

temporarily disable recentf without writing the list to disk?

I'm trying out the dashboard package and noticed that my .org files kept getting added to the recentf list, because dashboard uses OrgMode to generate the agenda that it displays. So I added code to ...
user avatar
2 votes
1 answer
103 views

Where are recentf entries stored? How can I import them into another emacs installation?

I've installed emacs on a new OS, and would like to maintain my 'recentf' file history entries (they'll be in the same location thanks to symlinks). Where are these entries stored? And how could I ...
user avatar
3 votes
1 answer
303 views

Prevent Emacs from messaging when it writes recentf

I've configured Emacs to save recentf every five minutes by using this code: (run-at-time nil (* 5 60) 'recentf-save-list) It works great, but after writing recentf Emacs feels it has to tell me ...
user avatar
  • 1,588
0 votes
0 answers
98 views

Recentf buffer is not interactively

windows 10, emacs 26.1 I use ido mode. in my init.el (require 'ido) (require 'ido-vertical-mode) (ido-use-virtual-buffers t) (ido-mode 1) (ido-vertical-mode 1) (setq ido-vertical-define-keys 'C-n-...
user avatar
  • 3,445
6 votes
4 answers
3k views

How show recent files?

windows 10, emacs 26.1 Suppose I open 10 files. And then restart Emacs. After restart I need to see what files (recent) I was open before. Is it possible to show some buffer that contain name of ...
user avatar
  • 3,445
0 votes
0 answers
468 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
user avatar
  • 807
1 vote
0 answers
95 views

helm-mini doesn't show .org files in recentf

helm-mini has suddenly (since 2 days) stopped showing all .org files under the recentf category. However, my recentf file correctly records all the .org files that I have opened. I do not have this ...
user avatar
  • 197
9 votes
1 answer
5k views

How to clear recent files list?

I renamed few files using Dired. I noticed helm shows old names in the list of recent files (helm-recentf). How do I remove the files that do not exist from recent files list?
user avatar
1 vote
0 answers
76 views

Disable recentf in helm follow mode

How can I prevent recentf to add files do the list which I didn't open but just previewed with helm follow mode?
user avatar
  • 977
7 votes
3 answers
2k views

How to remove files from recentf / ivy-virtual-buffers?

I find ivy's virtual buffers feature ((setq ivy-use-virtual-buffers t)) very handy for navigating to files whose buffers have been closed. Like ido's virtual buffers,it uses recentf to present those ...
user avatar
3 votes
3 answers
984 views

Getting Rid of Constant "Recentf Changed On Disk" Error

I use spacemacs. It seems like every time I switch windows from spacemacs and come back to it I get the annoying error recentf changed on disk; really edit the buffer? I have tried disabling recentf ...
user avatar
  • 807
3 votes
1 answer
522 views

Remove ELPA files from the recentf list

I recently started using recentf-mode. However, during a package refresh (using auto-package-update) my recentf list gets cluttered with all the package autoloads file: /home/polesz/.emacs.d/elpa/...
user avatar
2 votes
1 answer
2k views

spacemacs - How do I open from the recent file list?

I see the recent files listed when I boot up emacsclient -nc. How do I open them in the current window?
user avatar
3 votes
1 answer
407 views

distinguish ido/ivy's virtual-buffers with equal names using directory?

I really like the ido-use-virtual-buffers/ivy-use-virtual-buffers features, but unfortunately if you have five files named style.css in different projects, it is less useful. With already-opened ...
user avatar
  • 1,045
0 votes
0 answers
68 views

recentf cleanup upon mode enabled: not saved in the actual recentf-save-file

When Emacs starts, it reports a non-existent file is removed from recentf. However, that removal was never saved to the recentf-save-file: the next time Emacs starts, the same removal is reported ...
user avatar
  • 1,719
2 votes
0 answers
125 views

How to increase the number of recent file listings in helm-mini?

Is there a way to configure the number of recent files that will be in the Recentf section of a helm-mini buffer?
user avatar
1 vote
1 answer
108 views

Keep point position between re-opening files with recentf/ido

It's hard to say what was broken in my .emacs but with new Emacs 25.1.1 after opening file from recentf point is placed at the beginning of buffer whereas with Emacs 24 it opens in last viewed ...
user avatar
  • 3,130
7 votes
0 answers
210 views

How to let `recentf` not to remember real path when there's a symbolic link?

Since my .emacs.d is a symbolic link of ~/dotfile/dot/.emacs.d, recentf keeps duplicated thing like /Users/user/.emacs.d/init/init-editor.el /Users/user/dotfile/dot/.emacs.d/init/init-editor.el ...
user avatar
  • 1,150
1 vote
1 answer
332 views

Make helm-recentf open files with external program?

tl;dr Which keymap is active in helm-recentf? Or is there a better way to accomplish my goal? I want to use emacs as my file browser. When I select a file with helm-find-files or helm-recentf, I want ...
user avatar
3 votes
1 answer
2k views

Ignoring specific files in recentf-mode [duplicate]

I use company-statistics to sort completion candidates by previous completion choices. It works perfectly, except there is only tiny problem. The file ~/.emacs.d/company-statistics-cache.el pops up in ...
user avatar
6 votes
1 answer
836 views

Disable remote file cleanup in recentf?

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, ...
user avatar
  • 1,719
3 votes
1 answer
712 views

Open recent files buffer (recentf-mode) filled with autoload.el files

I've a problem with recentf-mode buffer in emacs. Apart from the files I opened before, its also showing all the autoload files for various packages I've installed which is cluttering the Open recent ...
user avatar
0 votes
1 answer
62 views

Show only file names starting with the given string in emacs history

When using C-x C-F to open a file, pressing ⇧ (up arrow) will iterate over the files I have recently opened. I believe the relevant lines from my ~/.emacs file are: (require 'recentf) (recentf-mode 1)...
user avatar
  • 735
1 vote
1 answer
203 views

"Recentf": Open file from *Open Recent* Buffer, but read-only

I'm using recentf-mode, part of Emacs. I'd like to open a file from the Open Recent buffer read-only, like if I had opened it via C-x C-r. Maybe if you type C-u in the Open Recent buffer before ...
user avatar
  • 474
6 votes
2 answers
1k views

How change the storage location of recentf file?

I looked around, but I couldn't find any answer in the documentation of recentf and with C-h v recent. My default directory is set with the following: (setq user-emacs-directory "~/home/...
user avatar
  • 3,725
8 votes
4 answers
948 views

Emacs can't save history of recent visited files opened in current session before shutdown

I have a problem with emacs started as daemon using Systemd. Every shutdown/reboot if I don't stop emacs daemon service manually, the history of recent opened files in current session is lost. I ...
user avatar
  • 643
8 votes
1 answer
2k views

Recentf doesn't remember all files

I have the following problem with recentf. If I open a file from commandline like emacs myfile the file myfile doesn't appear in the list of recently opened files (I also checked directly the file ....
user avatar
  • 977
20 votes
3 answers
4k views

replace splash screen with list of recentf

The splash screen is useful in the beginning, but now I want something more useful: I want to have list of recently opened files presented when starting emacs if there is no predefined file to open. ...
user avatar