Table E-4. Text filling and reformatting commands
Table E-4. Text filling and reformatting commands (Chapter 2)
Keystrokes | Command name | Action |
---|---|---|
(none) Options → Word 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) Edit → Fill | 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-_ Edit → Undo | 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 Edit → Search → Incremental Search → Forward String | isearch-forward | Start incremental search forward; follow by search string. Also, find next occurrence (forward) of search string. |
C-r Edit → Search → Incremental Search → Backward 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 Edit → Search → Regexp Forward | re-search-forward | Search for a regular expression forward. |
C-M-r Enter Edit → Search → Regexp Backwards | re-search-backward | Search for a regular expression backward. |
C-M-s Edit → Search → Incremental Search → Forward Regexp | isearch-forward-regexp | Search incrementally forward for a regular expression. |
C-M-r Edit → Search → Incremental Search → Backward Regexp | isearch-backward-regexp | Search incrementally backward for a regular expression. |
C-M-% Edit → Replace → Replace Regexp | query-replace-regexp | Query-replace a regular expression. |