Questions tagged [isearch]

Incremental search in GNU Emacs is called isearch. It highlights matching text in a buffer as you type a search pattern to match, and it moves to the next such match.

You can search incrementally for a literal string, a word, or a regexp.

9 questions
3
votes
2 answers

giving region to search in emacs

Is there a way to provide a region to isearch? I want to overload isearch so that: C-s -> 1. isearch as usual if no region is selected, OR 2. isearch with region as to-be-used-for-search string example: i 'select' the words "no exit", then C-s…
tihu
  • 35
  • 2
1
vote
1 answer

Initiating interactive regexp search programmatically

I'd like to define a command that initiates an isearch-forward-regexp with a predefined regexp. Say I want to find all occurrences of either "aaa" or "bbb". The regexp which I can enter interactively with isearch-forward-regexp is \\(aaa\\|bbb\\) Is…
Addlai
  • 121
  • 4
1
vote
2 answers

emacs isearch with automatic application of a regex between characters

I would like to have a hook into Emacs's isearch-forward function to make it automatically apply a regex between the input characters while searching a string. For example, I would like to set this regex to [-=<>]. If I now type foobar into…
lemzwerg
  • 772
  • 7
  • 15
1
vote
0 answers

Error when reassigning the ESC key in isearch-mode of Emacs

I follow the instruction of god-mode in Emacs to reassign the ESC key for isearch-mode-map and god-mode-isearch-map but encounter the following error error: Key sequence starts with non-prefix key The relevant code in my…
Trung Ta
  • 1,582
  • 1
  • 16
  • 25
1
vote
1 answer

dired-do-search does not use isearch-face

How can one have dired-do-search use the more visible isearch-face, or at least highlight the entire token found? A blinking cursor would be an alternative, if it weren't so distracting while editing. Restatement If I run isearch-forward on the…
Calaf
  • 10,113
  • 15
  • 57
  • 120
0
votes
1 answer

Emacs isearch symbol backwards/forwards using Ctrl-Arrows

How can I have Ctrl-Left/Right search forwards/backwards for the symbol under the cursor? I can't seem to find a way to search forwards/backwards on a symbol using just a single key. Spacemacs had this functionality for a while and likely came from…
tdwyer
  • 79
  • 5
0
votes
2 answers

How can I make Emacs isearch faster?

I use isearch all the time in Emacs but I've noticed on large org mode files it can take some time to find the first match. Is there any way to speed up isearch in a buffer? EDIT: The most noticeable speed improvement came from setting…
Conor
  • 1,509
  • 2
  • 20
  • 28
0
votes
1 answer

Activate rgrep from isearch

I'd like to be able to switch from an isearch query directly into rgrep (interactively) such that rgrep defaults to using for the full isearch query string. The default behavior of rgrep is to use the symbol under the cursor, but this doesn't work…
calvinyoung
  • 346
  • 2
  • 12
0
votes
1 answer

Update minibuffer in the isearch-update-post-hook

In my search to find a simpler solution that the one found "1 of n" result for Emacs search I've come up with the following package https://github.com/nordlow/elisp/blob/master/mine/indexed-isearch.el But the information displayed is delayed one…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99