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: Adrian Kubala
Subject: Re: placing cursor at *start* of match in incremental search
Date: Thu, 16 Jan 2003 11:53:01 -0600
User-agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Military Intelligence, i386-debian-linux)

address@hidden (Maciej Kalisiak) writes:

> 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?

Here's what I use:

;;; Isearch should always put point at the start of the match.
(defadvice isearch-exit (after my-goto-match-beginning activate)
  "Go to beginning of match."
  (when isearch-forward (goto-char isearch-other-end)))


reply via email to

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