问题
C-x C-s saves only the current buffer.
How do I save all files (or all buffers)?
回答1:
Press "C-x s" and then choose "!" for saving all buffers.
回答2:
Another way might be using list-buffers
- C-x C-b RET ; 3rd column shows '*' for modified buffers.
- s ; Mark the buffer at point to be saved.
- x ; Save and/or delete marked buffers.
With ibuffer is slightly different:
- M-x ibuffer RET ; 2nd column shows '*' for modified buffers.
- m ; Mark the buffer at point.
- S ; Save the marked buffers.
来源:https://stackoverflow.com/questions/44875692/how-do-i-save-all-files-or-save-all-buffers-in-emacs