Richard Gomes
Richard Gomes

Reputation: 6094

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

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

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

Upvotes: 11

Views: 6375

Answers (2)

Richard Gomes
Richard Gomes

Reputation: 6094

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

Upvotes: 26

Tino
Tino

Reputation: 444

Another way might be using list-buffers:

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

With ibuffer, it is slightly different:

  1. M-x ibuffer RET ; the second column shows '*' for modified buffers.
  2. m ; Mark the buffer at the point.
  3. S ; Save the marked buffers.

Upvotes: 8

Related Questions