One minute
Interactive search rediscovered
Nice tip I found while searching interactively (C-s
).
If you want to see all the occurences of what you’re just searching for, press M-s o
and you will see new buffer listing all the desired occurences. Moreover, you may extend searching convieniently by selecting next words with C-w
.
This flow C-s C-w C-w M-s o
selects 2 words starting at current cursor position and lists all their occurences in current buffer.
Obviously, the greatest way to simplify all above is hidden under the ‘anything’ hood. Try anything-occur and hear your jaw dropping :)