Opening and Saving Files
Use C-x C-f to visit a file. If the file does not exist yet, Emacs creates
the buffer first and writes the file when you save.
- Visit a file with Visiting Files.
- Save the current buffer with Saving Files.
- Save a buffer under a new name with Saving Files.
- Recover interrupted work with Reverting a Buffer and Auto-Save Files.
- Rename, copy, and delete files with Miscellaneous File Operations.
The main file commands are also listed in the Command and Function Index.