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: Greg Hill
Subject: Re: placing cursor at *start* of match in incremental search
Date: Thu, 16 Jan 2003 12:30:47 -0800

At 3:24 PM +0000 1/16/03, Maciej Kalisiak wrote:
When I'm doing incremental search using C-s, is there some variable I can tweak to get Emacs to place the cursor at the *start* of the match, as opposed to the
end, as is the default?

Put this in your .emacs:

(add-hook 'isearch-mode-end-hook
    (function (lambda () (goto-char (match-beginning 0)))))

--Greg




reply via email to

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