Skip to content

Commit 577f0d9

Browse files
committed
more about save-some-buffers
1 parent 01a0d0a commit 577f0d9

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

content/en/usage/usage.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This documentation is improved continually.
1818

1919
Lem has Emacs-like keybindings, as well as a vi emulation (`Alt-x vi-mode`).
2020

21-
So, to open a file, press `C-x C-f` (you get the file selection dialog shown above). To save it, it's `C-x C-s`. To save many buffers at once, use `C-x s`.
21+
So, to open a file, press `C-x C-f` (you get the file selection dialog shown above). To save it, it's `C-x C-s`. To save many buffers at once, use `C-x s` (`Alt-x save-some-buffers`).
2222

2323
To switch windows (aka splits of a screen): `C-x o` ('o' letter) and `M-o`. To make a window fullscreen: `C-x 1`. To split it vertically: `C-x 3` and horizontally: `C-x 2`. To make the current window disappear: `C-x 0` (zero).
2424

@@ -224,6 +224,8 @@ presented the list of existing buffers, into which you can:
224224
selected buffers. The default available actions are to kill the
225225
selected buffers, or to save them.
226226

227+
See also how to save many files at once below (`save-some-buffers` bound to `C-x s`).
228+
227229
### Creating new buffers
228230

229231
A buffer contains some text to display, but is not necessarily tied to a file.
@@ -238,6 +240,20 @@ is correct, no file is associated to this buffer. To save this buffer
238240
to a new file, use `C-x C-w` (`Alt-x write-file`). It asks for a
239241
filename, and saves the buffer to disk.
240242

243+
### Saving files
244+
245+
To save the current file, use `C-x C-s` (`save-current-buffer`).
246+
247+
Note that calling this command in a buffer that isn't linked to a file
248+
will have no effect. You can use `Alt-x write-file` (`C-x C-w`) for this.
249+
250+
To save many buffers at once, use `C-x s` (`Alt-x save-some-buffers`).
251+
You will be prompted for a confirmation for every unsaved file.
252+
253+
To bypass this confirmation and save all files at once, give the command a
254+
universal argument: `C-u 1 C-x s`.
255+
256+
241257
### Windows
242258

243259
A Lem "screen" can be divided into multiple windows.

0 commit comments

Comments
 (0)