[glug-t] Re: emacs search !

Thanks
But the codes dont show the word under search in the minibuffer or they 
highlight the word under
search ...  any work arounds  ..

>From: "Vimal Joseph" <vimal@xxxxxxxxxxxxx>
>Reply-To: glug_t@xxxxxxxxxxxxx
>To: glug_t@xxxxxxxxxxxxx
>Subject: [glug-t] Re: emacs search !
>Date: Wed, 9 Mar 2005 21:22:17 +0530 (IST)
>
>On Wed, 2005-03-09 at 14:46 +0000, Senthil Sargunan wrote:
>Hello,
> >
> > Is there a way to search the string on which the cursor is placed 
>without
> > typing the words in EMACS.
> >
>
>add the following lines to your .emacs
>
>(global-set-key [f10] 'search-word-under-cursor-forward)
>(global-set-key [f11] 'search-word-under-cursor-backward)
>
>(defun search-word-under-cursor-backward ()
>(interactive)
>   (search-backward (current-word)))
>
>(defun search-word-under-cursor-forward ()
>(interactive)
>   (search-forward (current-word)))
>
>and use f10 and f11 to search forward or backward.
>
>
>
>~vimal
>
>
>--
>Free as in Freedom <www.gnu.org>
>---------------------------------------------------------------
>To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
>'unsubscribe' as subject.
>
>Website: http://glugt.linuxisle.com

_________________________________________________________________
Want to meet David Beckham? http://www.msn.co.in/gillette/ Fly to Madrid 
with Gillette!

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: