From 5a12e7c134274dba706667107d10d231517d3e05 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Wed, 26 Aug 2009 10:00:38 -0500 Subject: Slackware 13.0 Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P. --- slackbook/html/emacs-basic-editing.html | 227 ++++++++++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 slackbook/html/emacs-basic-editing.html (limited to 'slackbook/html/emacs-basic-editing.html') diff --git a/slackbook/html/emacs-basic-editing.html b/slackbook/html/emacs-basic-editing.html new file mode 100644 index 000000000..fbc5072b4 --- /dev/null +++ b/slackbook/html/emacs-basic-editing.html @@ -0,0 +1,227 @@ + + + + +Basic Editing + + + + + + + + + + + +
+

17.4 Basic +Editing

+ +

When you have opened a file, you can of course move around in it with the cursor. The +cursor keys and PgUp, PgDn do what you'd expect. Home and End jump to the beginning and end of the line. (In older versions, +they would actually jump to the beginning and end of the buffer.) However, there are also +Control and Meta (Alt) +key combos that move the cursor around. Because you do not need to move your hands to +another part of the keyboard for these, they are much quicker once you get used to them. +The most important such commands are listed in Table 17-1.

+ +
+

Table 17-1. Basic Emacs Editing Commands

+ + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CommandResult
C-b go one character back
C-f go one character forward
C-n go one line down
C-p go one line up
C-a go to the beginning of the line
C-e go to the end of the line
M-b go one word back
M-f go one word forward
M-} go one paragraph forward
M-{ go one paragraph backward
M-a go one sentence backward
M-e go one sentence forward
C-d delete the character under the cursor
M-d delete until the end of the current word
C-v go down one screen (i.e., PgDn)
M-v go up one screen (i.e., PgUp)
M-< go to the beginning of the buffer
M-> go to the end of the buffer
C-_ undo the last change (can be repeated); note that you actually have to type Shift+Control+hyphen for +this.
C-k delete to end of line
C-s forward search
C-r backward search
+
+ +

Note that many Meta commands are parallel to the Control commands except that they operate on larger units: while C-f goes forward one character, M-f goes forward an entire word, etc.

+ +

Also note that M-< and M-> require you to type Shift+Alt+comma and Shift+Alt+dot +respectively, since < and > are on Shift+comma and Shift+dot. (Unless of course you have a different keyboard layout from the +standard US layout.)

+ +

Note that C-k deletes (kills, as it is +commonly called) all the text after the cursor to the end of the line, but doesn't delete +the line itself (i.e., it doesn't delete the final newline). It only deletes the line if +there was no text after the cursor. In other words, in order to delete a complete line, +you have to put the cursor at the beginning of the line, and then hit C-k twice: once to delete the text on the line, +once to delete the line itself.

+
+ + + + + -- cgit v1.2.3