Search

Home

This page covers:

Search in a buffer

In search mode, the following bindings are available:

Search in multiple buffers

Ibuffer

In Ibuffer, you can select buffers to do an incremental search on them. To mark buffers in the list, press m.

Then:

Search and replace

Search and Replace in several files

Search and Replace with across multiline regions

Newlines must be entered using C-q C-j. For example, to remove trailing commas in a JSON file, the regexp should be:

,\([
 ]+},\)

the newline being inserted with C-q C-j.

Examples

M-% C-q C-M RET RET

Replace with a Lisp expression

 M-x replace-regexp <RET> ^.\{0,72\}$ <RET>
         \,(format "%-72sABC%05d" \& \#) <RET>

Match Parenthesis

Search content in files

Exhuberant Ctags

A tag file must be created with exuberant ctags, for example:

 /usr/local/bin/ctags -e -R -f TAGS --tag-relative

This creates a tag file that will to need to be visited when first searching for a tag.

Highlighting

Misc Commands

Find a file

Next: Select


Project maintained by tychobrailleur Hosted on GitHub Pages — Theme by mattgraham