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

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

Re: placing cursor at *start* of match in incremental search


From: Maciej Kalisiak
Subject: Re: placing cursor at *start* of match in incremental search
Date: Fri, 17 Jan 2003 18:35:53 GMT
User-agent: slrn/0.9.7.4 (Linux)

* Greg Hill <ghill@synergymicro.com>:
>  Put this in your .emacs:
>  
>  (add-hook 'isearch-mode-end-hook
>       (function (lambda () (goto-char (match-beginning 0)))))

Ah, perfect!  Thanks.

Is this approach better, or Adrian's method of using "advice"? (I have only
limited elisp knowledge, and not much experience with advice functions)

-- 
Maciej Kalisiak | <mac@dgp.toronto.edu> | http://www.dgp.toronto.edu/~mac [McQ]
PGP->finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20  0B 31 3D 37 47 D0 67 C7
GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V--
PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+>++++ DI+ G+ e>+++>++++(*) h--- r+++ y? 


reply via email to

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