Skip to main content
22 votes

replace splash screen with list of recentf

There's also a package on MELPA for this now: dashboard: https://github.com/rakanalh/emacs-dashboard. The package allows you to have a splash screen as in the image below: Here's the use-package ...
tirocinium's user avatar
22 votes
Accepted

How to clear recent files list?

How do I remove the files that do not exist from recent files list? M-xrecentf-cleanupRET recentf-cleanup is an interactive compiled Lisp function in ‘recentf.el’. (recentf-cleanup) Cleanup the ...
Basil's user avatar
  • 12.6k
9 votes
Accepted

Prevent Emacs from messaging when it writes recentf

One solution for that narrow case is to dynamically set save-silently for that invocation specific invocation. Try: (run-at-time nil (* 5 60) (lambda () (let ((save-...
ebpa's user avatar
  • 7,579
7 votes

How show recent files?

install counsel (https://oremacs.com/2015/04/09/counsel-completion/) Run M-x counsel-recentf Press C-c C-o to export the file list to a buffer
chen bin's user avatar
  • 4,957
7 votes
Accepted

Remove ELPA files from the recentf list

on my side, I just ignored elpa folder by adding that: (add-to-list 'recentf-exclude (format "%s/\\.emacs\\.d/elpa/.*" (getenv "HOME")))
slemaguer's user avatar
  • 369
6 votes

An ivy function for recently opened files?

You're looking for counsel-recentf, which comes with counsel. Just M-x counsel-recentf or bind it to any keys you'd like and that's all you're looking for. Loosely speaking Ivy is the completion ...
Muihlinn's user avatar
  • 2,684
6 votes
Accepted

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

To go to the recent files list, you can press r in the *spacemacs* buffer. Then you can use j or k (if you've got vim-style editing) to navigate up and down the list. Press <RET> to open a file.
Ryan's user avatar
  • 4,079
5 votes
Accepted

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

According to https://github.com/abo-abo/swiper/issues/648, it's simply (setq ivy-virtual-abbreviate 'full) It's not quite as nice as opened buffers (where only the differing part is shown), but ...
unhammer's user avatar
  • 1,231
5 votes
Accepted

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

Ivy already has an action bound to "k" for ivy-switch-buffer, but it just calls kill-buffer so it does not work on virtual buffers. Based on what ido is doing, here's some code to replace the ...
glucas's user avatar
  • 20.9k
5 votes
Accepted

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

This should do it. (defun no-msg (function) "Prevent FUNCTION from showing `Wrote <FILE>' messages. \(The messages are still logged to `*Messages*'.)" (let ((inhibit-message t)) ...
Drew's user avatar
  • 79.1k
4 votes
Accepted

temporarily disable recentf without writing the list to disk?

You can let-bind find-file-hook to prevent Recentf from recording the file, e.g., (let ((find-file-hook (remq 'recentf-track-opened-file find-file-hook))) (find-file "test.txt")) Then to bypass ...
xuchunyang's user avatar
  • 14.8k
4 votes
Accepted

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

To determine where the recentf file is, you can query the variable recentf-save-file. By default, that is ~/.emacs.d/recentf. In spacemacs that is ~/.emacs.d/.cache/recentf. You can copy this file ...
Daniel's user avatar
  • 3,683
3 votes

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

I am not sure if this is what you are looking for and if it works in spacemacs. I am using standard emacs and desktop-save-mode. It is configurable with several options. I am using currntly this: (...
AltruisticDelay's user avatar
3 votes

How show recent files?

Your question is a duplicate of that one. Thanks to that reference to a blog entry, I included (require 'recentf) (recentf-mode 1) (setq recentf-max-menu-items 25) (global-set-key "\C-x\ \C-r" '...
mfg's user avatar
  • 171
3 votes

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

I know this thread is old, but i came across the same problem in MS Windows (i.e. Windows does know how to exit Emacs daemon gracefully). I solved this for me by hooking recentf-save-list into ...
Wolfgang's user avatar
3 votes

replace splash screen with list of recentf

Here's a package that shows recentf-open-files when starting Emacs without a file to open: https://github.com/zonuexe/init-open-recentf.el Configuration with use-package: (recentf-mode 1) (setq ...
njam's user avatar
  • 131
2 votes

How change the storage location of recentf file?

From the link (https://www.emacswiki.org/emacs/RecentFiles): ;; use a different set of recent files (setq recentf-save-file (recentf-expand-file-name "~/.emacs.d/.recentf"))
alper's user avatar
  • 1,460
2 votes

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

Another solution is to save the list of recentf files every time that you visit a new file. The below lined added to the init file will do the job: (add-hook 'find-file-hook 'recentf-save-list)
thdox's user avatar
  • 257
2 votes

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

Seems that I used deprecated way for activating minor mode (this works across Emacs 21-24): (setq-default save-place t) (require 'saveplace) Today way to activate this minor mode is: (save-place-...
gavenkoa's user avatar
  • 3,552
2 votes

Getting Rid of Constant "Recentf Changed On Disk" Error

Removing the whole emacs cache fixed the issue: rm -rf ~/.emacs.d/.cache/
mimoralea's user avatar
  • 121
2 votes

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

Ok, I found this file : # cat ~/.emacs.d/tramp ;; -*- emacs-lisp -*- <21/02/05 12:48:54 /home/xxxxxx/.emacs.d/tramp> ;; Tramp connection history. Don't change this file. ;; You can delete it, ...
yPhil's user avatar
  • 993
2 votes

Remove zombie buffers from recentf

recentf-cleanup shouldn't remove all your history. According to the documentation (C-h f recentf-cleanup RET): recentf-cleanup is an interactive compiled Lisp function in ‘recentf.el’. (recentf-...
learner's user avatar
  • 121
2 votes
Accepted

Hiding certain directories in the recentf list

Evaluate : (add-to-list 'recentf-exclude "/private/var/folders/.*") To activate it permanently, save it in your init file (.emacs or .emacs.d/init.el).
gigiair's user avatar
  • 2,273
2 votes

How to see all recent directories?

Dired+ just uses your recentf-list of files and directories. It is library recentf.el that controls what file and dir names to record there. For that, library recentf.el provides several user options, ...
Drew's user avatar
  • 79.1k
2 votes
Accepted

init-open-recentf with use-package

Your snippet isn't working because recentf won't load until you press the C-x C-r key combination, which in turn implies init-open-recentf will not be loaded. You can read more about lazy loading with ...
Swarnendu Biswas's user avatar
2 votes
Accepted

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

Try adding (recentf-mode) (setq initial-buffer-choice #'recentf-open-files) at the end of your init file. If you have a customization file, you probably want to delete any initial-buffer-choice entry ...
NickD's user avatar
  • 33.6k
2 votes
Accepted

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

See the documentation: A directory is recent if any of its files is recent.
choroba's user avatar
  • 2,125
2 votes

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

Customize recentf-keep and set it to nil if you don't want any checking. C-h v recentf-keep says: recentf-keep is a variable defined in ‘recentf.el’. Its value is (recentf-keep-default-predicate) ...
NickD's user avatar
  • 33.6k
2 votes

Unable to disable nor shrink recentf-mode

There are several variables defined in recentf.el that you can use to control what gets saved in the recentf list. And you can use command recentf-cleanup to cull entries that don't satisfy those ...
Drew's user avatar
  • 79.1k
1 vote

Open recent directories like Ido opens files

I am open to any other suggestion of workflow to reach a recent (or any) directory quickly. Dired+ lets you open a Dired buffer that shows recently used directories (commands diredp-dired-recent-dirs ...
Drew's user avatar
  • 79.1k

Only top scored, non community-wiki answers of a minimum length are eligible