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.4k
9 votes
Accepted

Ignoring specific files in recentf-mode

(add-to-list 'recentf-exclude "company-statistics-cache.el") or more accurately (add-to-list 'recentf-exclude (recentf-expand-file-name "~/.emacs.d/company-statistics-...
xuchunyang's user avatar
  • 14.5k
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,479
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,867
7 votes
Accepted

Disable remote file cleanup in recentf?

M-x customize-option RET recentf-keep RET, and be sure to read its description. You can use any arbitrary or conditional expression. And that includes file-remote-p.
Drew's user avatar
  • 77.5k
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
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,049
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.6k
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,159
5 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,624
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
  • 77.5k
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,653
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
  • 161
3 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.5k
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
Accepted

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

Setting recentf-exclude may help you. cf. https://www.reddit.com/r/emacs/comments/3g468d/stop_recent_files_showing_elpa_packages/
lurdan's user avatar
  • 1,071
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
3 votes
Accepted

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

You can customize recentf-menu-action, from C-h v recentf-menu-action: recentf-menu-action is a variable defined in ‘recentf.el’. Its value is ‘find-file’ Documentation: Function to invoke ...
xuchunyang's user avatar
  • 14.5k
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,370
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,452
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

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

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
  • 983
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,176
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
  • 77.5k
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

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,045
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
  • 29.8k

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