O'Reilly logo

Harley Hahn's Emacs Field Guide by Harley Hahn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Harley Hahn 2016

Harley Hahn, Harley Hahn's Emacs Field Guide, 10.1007/978-1-4842-1703-0_10

10. Searching

Harley Hahn

(1)Santa Barbara, California, USA

10.1 Section 10.1: Introducing the Emacs Search Commands

Emacs gives you several ways to search for a pattern within the buffer. Figure 10-1 shows a summary of the different search commands. At first, it looks overwhelming, but don’t worry. In almost all cases, it boils down to four simple ideas.

  1. To search forward, press C-s and type what you want to find.

  2. To search backward, press C-r and type what you want to find.

    To remember the names, think of s for "search" and r for "reverse". As you are searching, the characters you type are called the SEARCH STRING.

  3. If Emacs finds what you specified, you can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required