SiteMap Search ElispArea HowTo Glossary RecentChanges News Problems Suggestions
Jordan, Independence Day, Argentina, National Day

CategorySearchAndReplace

Last edit

Summary: I have added a link to a simple replacement routine I wrote, replace-in-buffer. It replaces text in the complete buffer, with the current region or next word as a pattern for the old string.

Added:

> * [[Replace-in-buffer]] -- Replace text in complete buffer, use current region or next word as pattern


Emacs can search in the current buffer, across many buffers or in files.

You can also search Emacs internals--like documentation, commands and variables (See SelfDocumentation). Some completion features use search.

This page is about searching and replacing text in Emacs. Look for ‘search’ in the EmacsManual for more information – that will also provide info about replacing.

Search in Buffers

Vanilla:

Additional:

Replace in Buffers

Vanilla:

Additional:

Search Across Files

You can also, of course, visit files to be searched in buffers, and then use the techniques above for SearchInBuffers.

Vanilla:

Additional:

Replace Across Files

Vanilla:

Additional:

See Also


CategoryExternalUtilities CategoryRegexp