tags:

views:

97

answers:

2
+5  Q: 

M-x occur-instant

I like to do something equivalent to M-x occur in google-instant fashion. So as I type the regex, it will display all the matches. This would be little different compared to M-x iseaerch-forward-regexp, because the matches will be shown in different buffer, rather than same buffer.

Is there anything equivalent?

Thanks.

+6  A: 

Yes, check out ioccur.

Follow the links to the latest version, download the ioccur.el file to a directory where you put your Emacs packages (I use ~/emacs/lisp), and then add the following to your .emacs:

(add-to-list 'load-path "~/emacs/lisp")
(require 'ioccur)
Trey Jackson
I found it here. http://mercurial.intuxication.org/hg/ioccur/file/c7f96148ecbc/ioccur.el. Is there an easy way to install this in emacs directly?
aartist
@aartist I've added directions how to install.
Trey Jackson
Just one single problem. It complaints on Windows, while compiling.
aartist
@aartist The warning I see about `wdired-change-to-dired-mode` is just that, and can be ignored.
Trey Jackson
A: 

Another option: Anything

Provides M-x anything-occur

Joseph Gay