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
0 votes
0 answers
12 views

Can I simultaneously search form recentf and locate with consult?

Is it possible to merge data sources with consult? My use case would be to search both from locate and recentf. Is that possible? How to accomplish this?
jyp's user avatar
  • 128
0 votes
1 answer
25 views

What determines when a file is added to projectile-recentf?

I'm not really sure how it's supposed to work, but when I use helm-projectile-recentf, I don't find the most recent files. Sometimes I do and sometimes I don't;) I always find them with helm-recentf, ...
Jason Hunter's user avatar
1 vote
1 answer
24 views

Unable to disable nor shrink recentf-mode

Loading recentf (180MB) makes emacs unusable recently. Simple M-x calls take almost a minute each and everytime I see a recentf related message. As others already asked I'm unable as well to disable ...
jjk's user avatar
  • 744
0 votes
1 answer
37 views

Recent Files on Removable Media (There's no such thing)

Whenever I edit files on removable media, these files disappear from the recent files list, when I remove the media. When I reinsert the media, I have no recent files for that medium and I have to ...
Jason Hunter's user avatar
0 votes
1 answer
43 views

Close File, Still in Use

I have a problem, where after I edit a file on a USB stick and close the file with C-x k, Emacs still has a grip on the file until this message appears a few minutes later: Debugger entered--Lisp ...
Jason Hunter's user avatar
0 votes
1 answer
121 views

Why consult-recent-file show also recent directories?

Emacs 27.1 package: consult ver.0.32 Here my init.el (use-package consult :config (message "consult - I'm always here after the package is loaded") (add-hook 'dired-mode-hook (lambda () (...
a_subscriber's user avatar
  • 4,074
0 votes
1 answer
18 views

Dired+: diredp-dired-recent-dirs not working correctly

Linux Mint 21 Emacs 27.1 package Dired+, Version: 2023.01.14 1. M-x diredp-dired-recent-dirs 2. Dired (buffer name): my-buffer Here result: As you can see the count of recent folders = 10. OK. Now I ...
a_subscriber's user avatar
  • 4,074
0 votes
1 answer
132 views

recentf (wrong-type-argument stringp nil)

I seem to have updated something which is causing recentf to fail, not sure. Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-readable-p(nil) (and (file-readable-p filename) (...
Jason Hunter's user avatar
1 vote
0 answers
76 views

How to ignore (for recentf) files opened automatically during start-up

Some modes, on Emacs start-up, load a lot of files automatically. Example: Org-mode refreshes its agenda by reading every file configured to contain agenda items. But these "read the file ...
bignose's user avatar
  • 639
1 vote
1 answer
34 views

recentf-mode, for files opened with sudo

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://
Jason Hunter's user avatar
0 votes
1 answer
110 views

change starting buffer from *scratch* to recentf-open-files

I like the buffer that is opened when type M-x recentf-open-files. I'd love to have it as my starting buffer instead of scratch, but I don't know how. I've tried adding '(initial-buffer-choice '...
delki8's user avatar
  • 105
1 vote
0 answers
51 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 ...
Mikef's user avatar
  • 175
1 vote
1 answer
337 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 ...
buhtz's user avatar
  • 729
0 votes
1 answer
21 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) ...
a_subscriber's user avatar
  • 4,074
0 votes
1 answer
197 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 ...
a_subscriber's user avatar
  • 4,074
1 vote
1 answer
84 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"...
a_subscriber's user avatar
  • 4,074
5 votes
1 answer
137 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) (...
alper's user avatar
  • 1,370
0 votes
1 answer
89 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 ...
yPhil's user avatar
  • 983
0 votes
1 answer
152 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/...
Namudon'tdie's user avatar
0 votes
0 answers
181 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.
HappyFace's user avatar
  • 830
2 votes
2 answers
183 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....
Gradient's user avatar
  • 211
2 votes
1 answer
438 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 ...
yPhil's user avatar
  • 983
0 votes
1 answer
156 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 ...
yPhil's user avatar
  • 983
2 votes
1 answer
342 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 ...
Keith Pinson's user avatar
2 votes
1 answer
411 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 ...
alper's user avatar
  • 1,370
1 vote
0 answers
158 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 ...
alper's user avatar
  • 1,370
1 vote
1 answer
1k 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 ...
sixter's user avatar
  • 113
0 votes
0 answers
91 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-...
CD86's user avatar
  • 563
2 votes
1 answer
206 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 ...
CD86's user avatar
  • 563
4 votes
2 answers
2k 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 ...
VP.'s user avatar
  • 197
1 vote
0 answers
38 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 ...
HappyFace's user avatar
  • 830
1 vote
2 answers
77 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 ...
Chris Stryczynski's user avatar
2 votes
1 answer
195 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 ...
MikeTheTall's user avatar
2 votes
1 answer
128 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 ...
Chris Stryczynski's user avatar
4 votes
1 answer
398 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 ...
izkon's user avatar
  • 1,878
0 votes
0 answers
108 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-...
a_subscriber's user avatar
  • 4,074
7 votes
4 answers
5k 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 ...
a_subscriber's user avatar
  • 4,074
0 votes
0 answers
593 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 ...
George's user avatar
  • 919
1 vote
0 answers
103 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 ...
latex_guy's user avatar
  • 207
11 votes
1 answer
6k 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?
Andrew-Dufresne's 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?
student's user avatar
  • 1,109
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 ...
Croad Langshan's user avatar
3 votes
3 answers
1k 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 ...
George's user avatar
  • 919
3 votes
1 answer
575 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/...
GergelyPolonkai's 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?
Senthil Kumaran's user avatar
3 votes
1 answer
416 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 ...
unhammer's user avatar
  • 1,159
0 votes
0 answers
74 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 ...
xuhdev's user avatar
  • 1,899
2 votes
0 answers
128 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?
Terrence Brannon's user avatar
1 vote
1 answer
126 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 ...
gavenkoa's user avatar
  • 3,452
7 votes
0 answers
271 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 ...
Saddle Point's user avatar