22Chapter2 • Working With Editors
File Operations
Editing within Emacs is done through a series of buffers. Each buffer may be edited sepa-
rately and the changes saved back to the disk. Files may also be opened into new or existing
buffers as shown in Table 2-4.
Search and Replace
There are two search and replace functions within Emacs. The first one simply does a sim-
ple search (case insensitive by default) for the character string provided by the user. The second,
more complex search function does a search and replace on regular expressions. See Table 2-5
for a list of these commands.
Table2-4 File Commands
ActionCommand
^X ^FOpen File
^X kClose File
^X iInsert File
^X ^SSave File
^X wSave File As
^X bChange Buffer
Table2-5 Search and Replace Commands
ActionCommand
^S ENTERSearch
^SContinue Forward Search
^R ENTERSearch Backwards
^RContinue Backwards Search
M-%Search & Replace
M-X query-replace-regexpRegular Expression (regex) Search & Replace
M-X occurFind occurrences of a string in the current buffer
Next Page >>
<< Previous Page
Back to the Table of Contents