Skip to content

Commit da29140

Browse files
committed
Merge pull request #20 from sshbio/master
More tips for discoverability and convenience
2 parents eb0bac2 + f948e40 commit da29140

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

chapters/02-the-basics.org

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ An /Emacs frame/ can be divided into /windows/ in itself.
117117
- *C-x 3*: open a new window vertically, which corresponds to *M-x split-window-right*
118118
- *C-x o*: switch to the next window, which corresponds to *M-x other-window*
119119
- *C-x 0*: close the current window, which corresponds to *M-x delete-window*
120+
- *C-x 1*: close all the windows but the one focused, which correspond to *M-x delete-other-windows*
120121

121122
#+CAPTION: Windows manipulation
122123
[[../images/windows.gif]]
@@ -129,13 +130,17 @@ A /buffer/ is displayed in a /frame/.
129130
- *C-x C-b*: list opened buffer (and jump to the selected one), which corresponds to *M-x list-buffers*
130131
- *C-x k*: kill a buffer, which corresponds to *M-x kill-buffer*
131132

133+
On most read-only buffers, press *q* to close it.
134+
132135
#+CAPTION: Buffer navigation
133136
[[../images/buffers.gif]]
134137

135138
*** Cancel a command
136139

137140
- *C-g* or *ESC ESC ESC*: cancel the current command running in the minibuffer, which corresponds to *M-x keyboard-quit*
138141

142+
It also cancels all previously pressed keys.
143+
139144
*** The most useless command
140145

141146
- *C-x C-c*: quit emacs (use at your own risks!), which corresponds to *M-x save-buffers-kill-terminal*
@@ -146,9 +151,12 @@ Emacs has a powerful built-in help system for key bindings and internal function
146151

147152
- *C-h f <function-name>*: Find the key binding corresponding to <function-name> (ex: C-h f save-buffer)
148153
- *C-h k <key-sequence>*: Find the function name corresponding to <key-sequence> (ex: C-h k C-x C-s)
154+
- *<key-sequence> C-h*: Show the next possible keys to press after the <key-sequence> (ex: C-x 4 C-h)
149155

150156
When executing these commands, a new frame opens. To close it, switch to it (/C-x o/) and type /q/. If not, simply close it (/C-x 0/)
151157

158+
After executing a command with M-x, if the command have a corresponding keybinding bound to it, a message indicating what to press will appear in the minibuffer.
159+
152160
Emacs also includes the full manual (also available online: http://www.gnu.org/software/emacs/manual/html_node/emacs/)
153161

154162
- *C-h r*: browse the Emacs manual within Emacs

0 commit comments

Comments
 (0)