- C-x C-f –> Opens a file, asks for the file name. If it cannot find the file, it creates the file. It’s in the buffer so it’s now saved yet
- C-x C-s –> Saves the file without a prompt
- C-x s –> Saves all files with a prompt
- C-x C-w –> Saves the file with a different name. As for the name.
// Emacs creates a backup of current file and nanes it with a ~
// Emacs also auto-saves everyting with the name #filename#
// If you quit emacs without saving, you can see this auto-save file.
- C-x C-c –> to quit
- To recover file, open file then press ESC-x revover-this-file then press enter
// M-x means Esc-x on a PC
// To recover a file without a file name use recover-session
———————
Copy and Paste
———————
- C-k cut
- C-y paste
- C-space Starts marking/highlighting a region
- C-w Cuts whatever is highlighted
- C-y pastes it back
————————
Cursor commands
————————
- C-a Beginning of a line
- C-e End of line
- Esc > To the end of file
- Esc < To the beginning of file
- C – / Undo
- C-g C-/ Redo