The "get-me-out-of-this-action" key is ^G.
Sometimes, if you are mixing mouse navigation with typing, you might leave a command uncompleted, which makes some wierd things happen. If that's the case, you'll see the command named on the bottom line of the window, below the status bar. To deal with that situation, click your mouse in there (so that your typing will go to the command), then either finish the command or abort it with ^G.
If you use the buttons or menus for opening and writing files, you need to know that the dialogs that pop up are written for a three-button mouse. In particular, when you are opening a file, middle-clicking on a file name will select it. The scroll wheel doubles as the middle button: you can click it.
Emacs uses a few keys (such as ^X or ESC) as prefixes to other keys, instead of like a shift key. So some of these are multiple-key sequences.
^X ^F Open (find) a file. (You'll complete the filename on the bottom line of the screen.) ^X ^S Save the current file. ^X ^W Write the current file under another name. (You'll complete the filename on the bottom line of the screen.) ^K Kill from the cursor to the end of the line. If you hit this several times in a row, what you kill will all be collected together. ^Y Yank back whatever was last killed. ^W Kill (wipe) the highlighted text. ^A Move to the beginning of the line. ^E Move to the end of the line. ESC g g Go to a line by number.
You can also have a file open in a buffer without it presently showing on the screen. You'll find various ways to move among buffers in the "Buffers" menu, and you can also find ways to show a different buffer in your window by pointing the mouse at the buffer's name (usually the same as the file name) in the status line at the bottom of the window. You'll also find out that Emacs may have some additional buffers that don't correspond to files (with names like "Messages").
^X 1 Show only one window, with the buffer where the cursor is. ^X 2 Split the current window into two; both will show the same buffer. ^X 0 Get rid of the current window. (That is a zero.) ^X o Jump to the other (or next) window. (That is a letter o.)
Emacs is already set to show you what line number the cursor is on,
which can be helpful for finding and fixing mistakes.
The line number shows up toward the right side of the status bar
below the text you are editing, as something like L23
to
indicate that you are on line 23.
&
) on
the end of the command when you start Emacs, you'll get your command
prompt back for further use.
Note also that once you have Emacs running, you can use its commands
to visit additional files; so you can often manage by starting it up
just once for all the editing that you do in a session.
Last modified: Thu Jan 14 17:35:00 CST 2016