Emacs: Open Recently Opened File
This page shows you how to open recently opened files.
recentf-mode to turn it on. Then, Alt+x
recentf-open-files to list recently opened file.
To open the file, just press a digit key. Or, move cursor to the line and press Enter ↵.
Turn on Recentf for Future Sessions
To turn it on for future sessions, put this in your emacs init:
(recentf-mode 1) ; keep a list of recently opened files
Assign a Key Shortcut
It's good to give it a easy key to call
recentf-open-files. For example:
;; set F7 to list recently opened file (global-set-key (kbd "<f7>") 'recentf-open-files)
For more key choices, see Emacs: How to Define Keys.
Open File topics
- Emacs: File Manager, dired
- Emacs: Bookmark Tutorial
- Emacs: Open Recently Opened File
- Emacs: Open File Fast
- Emacs: Open Last Closed File
- Emacs: Open File Path Under Cursor