help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to search current word under cursor?


From: Drew Adams
Subject: RE: How to search current word under cursor?
Date: Sat, 19 Jul 2008 09:24:48 -0700

> >> I want search this buffer of current word under cursor, 
> >> how can I do it?
> > 
> > C-s C-w
>
> How do you extend this to the occur function?  I have a key 
> binding mapped to the occur function, and I would like the
> word at the cursor (compete word foo_bar, not just foo) to be
> the default search when invoked?

http://www.emacswiki.org/cgi-bin/wiki/OccurFromIsearch

(Also, C-s C-w C-w... accumulates search text, so C-s C-w C-w will pick up
foo_bar as the search string.)
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]