[glug-t] Re: emacs search !

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

Other related posts: