By Debra Cameron, James Elliott, Marc Loy, Eric S. Raymond, Bill Rosenblatt
Book Price: $39.95 USD
£28.50 GBP
PDF Price: $31.99
Cover | Table of Contents | Colophon
*scratch* is
just a temporary practice buffer, like a scratchpad; the help
facility displays help messages in a buffer named
*Help*, which also isn't
connected to a file.|
Mode
|
Function
|
|---|---|
|
Fundamental mode
|
The default mode (Chapter 6)
|
|
Text mode
|
For writing text (Chapter 2)
|
|
View mode
|
For viewing files but not editing (Chapter 4)
|
|
Shell mode
|
For running a shell within Emacs (Chapter 5)
|
|
Click on the Emacs icon or, from the command line, type: emacs Enter
|
|
|
Starting Emacs.
|
*scratch*, an ideal place for you to experiment.
|
Icon
|
Function
|
Where to learn more
|
|---|---|---|
|
|
Press: C-x C-f
|
|
|
Emacs prompts you for a filename.
|
|
Type: newfile
Enter
|
|
|
Emacs starts another buffer with the new file in it.
|
No changes need to be saved in the
minibuffer. You can also get to this option by pressing the diskette
on the toolbar or choosing Save (current buffer) from the File menu.*scratch* buffer by typing C-x C-s, Emacs asks you for a filename. After
you give it a filename, Emacs changes the mode line accordingly.Please answer yes or no, you
didn't enter the whole word and it wants you to.|
Type: C-h k
|
|
|
Asking for help about a keyboard command.
|
|
Type: C-x i
|
|
|
Emacs splits the screen to display help. |
|
Keystrokes
|
Command name
|
Action
|
|---|---|---|
|
C-x C-f
File
→
Open File
|
find-file
|
Find file and read it in a new buffer.
|
|
C-x C-v
|
find-alternate-file
|
Read an alternate file, replacing the one read with C-x C-f.
|
|
C-x iFile → Insert File
|
insert-file
|
Insert file at cursor position.
|
|
C-x C-sFile → Save (current
buffer)
|
save-buffer
|
Save file.
|
|
C-x C-wFile → Save Buffer As
|
|
Refill appears, you are
in refill mode already. If not, you can turn it on for this buffer
only by typing
Beginning of
buffer or End of buffer.|
If the cursor is here:
|
M-d makes this edit:
|
|---|---|
It was the worst of times
|
It was the w of times |
|
Move to the beginning of "it" and
press C-Space.
|
|
|
Linux
|
Windows
|
Mac OS X graphical
|
Mac OS X terminal
| |
|---|---|---|---|---|
|
Sends to clipboard?
|
no
|
yes
|
yes
|
no
|
|
Sends to kill ring?
|
yes
|
yes
|
|
Before C-t
|
After C-t
|
|---|---|
the best of timse, it
|
the best of times
it
|
|
Before M-t
|
After M-t
|
|---|---|
one three two |
one two three
|
|
Initial state:
|
|
|
Whirligig appears four times, but the cursor is positioned after the
first instance.
|