Emacs: Open Recently Opened File

By Xah Lee. Date: . Last updated: .

Alt+x recentf-mode to turn it on. Then, Alt+x recentf-open-files to list and open recently opened file.

To open the file, just press a digit key. Or, move cursor to the line and press Enter.

emacs recentf 2021-07-19
emacs recentf-mode

Turn on Recentf for Future Sessions

Put this in your emacs init file:

;; keep a list of recently opened files
(require 'recentf)
(recentf-mode 1)

It's good to give it a easy key. [see Emacs: How to Define Keys]

Spent a few hours here?

Emacs Tutorial

Emacs Init

Emacs Keys

Elisp Basics

Elisp Examples

Elisp Advanced

Elisp Write Major Mode


Emacs Tutorial

Quick Start

Manage Windows

File

Buffer

Find Replace

Copy/Paste

Unicode

Whitespace

Rectangle Edit

Line Wrap

Shell

View Special File

Editing Brackets

Org Mode

HTML

Emacs Efficiency

Misc