You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/usage/usage.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ This documentation is improved continually.
18
18
19
19
Lem has Emacs-like keybindings, as well as a vi emulation (`Alt-x vi-mode`).
20
20
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`).
22
22
23
23
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).
24
24
@@ -224,6 +224,8 @@ presented the list of existing buffers, into which you can:
224
224
selected buffers. The default available actions are to kill the
225
225
selected buffers, or to save them.
226
226
227
+
See also how to save many files at once below (`save-some-buffers` bound to `C-x s`).
228
+
227
229
### Creating new buffers
228
230
229
231
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
238
240
to a new file, use `C-x C-w` (`Alt-x write-file`). It asks for a
239
241
filename, and saves the buffer to disk.
240
242
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
+
241
257
### Windows
242
258
243
259
A Lem "screen" can be divided into multiple windows.
0 commit comments