Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I save all files (or save all buffers) in Emacs?

Tags:

file

emacs

save

C-x C-s saves only the current buffer.

How do I save all files (or all buffers)?

like image 961
Richard Gomes Avatar asked Jul 02 '17 22:07

Richard Gomes


Video Answer


2 Answers

Press "C-x s" and then choose "!" for saving all buffers.

like image 159
Richard Gomes Avatar answered Oct 08 '22 16:10

Richard Gomes


Another way might be using list-buffers

  1. C-x C-b RET ; 3rd column shows '*' for modified buffers.
  2. s ; Mark the buffer at point to be saved.
  3. x ; Save and/or delete marked buffers.

With ibuffer is slightly different:

  1. M-x ibuffer RET ; 2nd column shows '*' for modified buffers.
  2. m ; Mark the buffer at point.
  3. S ; Save the marked buffers.
like image 33
Tino Avatar answered Oct 08 '22 15:10

Tino