Выбрать главу

Table E-4. Text filling and reformatting commands

Table E-4. Text filling and reformatting commands (Chapter 2)

Keystrokes Command name Action
(none) OptionsWord Wrap in Text Modes auto-fill-mode Toggle auto-fill mode, in which Emacs formats paragraphs as you type them.
M-q fill-paragraph Reformat paragraph.
(none) EditFill fill-region Reformat individual paragraphs within a region.

Table E-5. Stopping and undoing commands

Table E-5. Stopping and undoing commands (Chapter 2)

Keystrokes Command name Action
C-g keyboard-quit Abort current command.
C-x u advertised-undo Undo last edit (can be done repeatedly).
C-_ EditUndo undo Undo last edit.
(none) revert-buffer Restore buffer to the state it was in when the file was last saved (or auto-saved).

Table E-6. Search and replace commands

Table E-6. Search and replace commands (Chapter 3)

Keystrokes Command name Action
C-s EditSearchIncremental SearchForward String isearch-forward Start incremental search forward; follow by search string. Also, find next occurrence (forward) of search string.
C-r EditSearchIncremental SearchBackward String isearch-backward Start incremental search backward; follow by search string. Also, find next occurrence (backward) of search string.

Table E-7. Regular expression search commands

Table E-7. Regular expression search commands (Chapter 3)

Keystrokes Command name Action
C-M-s Enter EditSearchRegexp Forward re-search-forward Search for a regular expression forward.
C-M-r Enter EditSearchRegexp Backwards re-search-backward Search for a regular expression backward.
C-M-s EditSearchIncremental SearchForward Regexp isearch-forward-regexp Search incrementally forward for a regular expression.
C-M-r EditSearchIncremental SearchBackward Regexp isearch-backward-regexp Search incrementally backward for a regular expression.
C-M-% EditReplaceReplace Regexp query-replace-regexp Query-replace a regular expression.